@cryptotaxi247 / netdata-1 / commits / 18c948e36

allow boolean config options to accept: yes, true, on, auto, on demand as positive - also case incesitive; fixes #2493

Costa Tsaousis (ktsaou) committed Jul 24, 2017 at 20:01 UTC 18c948e369af186778e93756b29a48829effda02
1 file changed +1 -1
src/appconfig.c
+1 -1
@@ -317,7 +317,7 @@ int appconfig_get_boolean(struct config *root, const char *section, const char *
317 s = appconfig_get(root, section, name, s);
318 if(!s) return value;
319
320 - if(!strcmp(s, "yes") || !strcmp(s, "auto") || !strcmp(s, "on demand")) return 1;
320 + if(!strcasecmp(s, "yes") || !strcasecmp(s, "true") || !strcasecmp(s, "on") || !strcasecmp(s, "auto") || !strcasecmp(s, "on demand")) return 1;
321 return 0;
322 }
323