Browse code

app_lua: defaut value for reload parameter set to 1

- reload feature enabbled by default, set to 0 to disable

Daniel-Constantin Mierla authored on 15/04/2018 11:03:14
Showing 2 changed files
... ...
@@ -44,7 +44,7 @@
44 44
  * reload enabled param
45 45
  * default: 0 (off)
46 46
  */
47
-static unsigned int _app_lua_sr_reload = 0;
47
+static unsigned int _app_lua_sr_reload = 1;
48 48
 /**
49 49
  *
50 50
  */
... ...
@@ -271,18 +271,19 @@ modparam("app_lua", "register", "sl")
271 271
 	    <title><varname>reload</varname> (boolean)</title>
272 272
 	    <para>
273 273
 			If reload is 1 enables the ability to reload the
274
-			scripts using the RPC app_lua.reload command.
274
+			scripts using the RPC app_lua.reload command. To disable reload
275
+			feature, set this parameter to 0.
275 276
 	    </para>
276 277
 	    <para>
277 278
 		<emphasis>
278
-		    Default value is <quote>0 (off)</quote>.
279
+		    Default value is <quote>1 (on)</quote>.
279 280
 		</emphasis>
280 281
 	    </para>
281 282
 	    <example>
282 283
 		<title>Set <varname>reload</varname> parameter</title>
283 284
 		<programlisting format="linespecific">
284 285
 ...
285
-modparam("app_lua", "reload", 1)
286
+modparam("app_lua", "reload", 0)
286 287
 ...
287 288
 </programlisting>
288 289
 	    </example>