r3312 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu Oct 16 12:32:48 CEST 2008


Author: phk
Date: 2008-10-16 12:32:47 +0200 (Thu, 16 Oct 2008)
New Revision: 3312

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_param.c
Log:
Allow "true" and "false" as settings for booleans



Modified: trunk/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_param.c	2008-10-16 09:09:16 UTC (rev 3311)
+++ trunk/varnish-cache/bin/varnishd/mgt_param.c	2008-10-16 10:32:47 UTC (rev 3312)
@@ -122,12 +122,16 @@
 			*dest = 0;
 		else if (!strcasecmp(arg, "no"))
 			*dest = 0;
+		else if (!strcasecmp(arg, "false"))
+			*dest = 0;
 		else if (!strcasecmp(arg, "on"))
 			*dest = 1;
 		else if (!strcasecmp(arg, "enable"))
 			*dest = 1;
 		else if (!strcasecmp(arg, "yes"))
 			*dest = 1;
+		else if (!strcasecmp(arg, "true"))
+			*dest = 1;
 		else {
 			cli_out(cli, "use \"on\" or \"off\"\n");
 			cli_result(cli, CLIS_PARAM);




More information about the varnish-commit mailing list