r3577 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Thu Feb 5 09:25:16 CET 2009


Author: tfheen
Date: 2009-02-05 09:25:16 +0100 (Thu, 05 Feb 2009)
New Revision: 3577

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



Modified: branches/2.0/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/mgt_param.c	2009-02-03 21:49:47 UTC (rev 3576)
+++ branches/2.0/varnish-cache/bin/varnishd/mgt_param.c	2009-02-05 08:25:16 UTC (rev 3577)
@@ -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