aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/zeroconf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index 1836c64ca..aab09143a 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -558,11 +558,9 @@ void initZeroconf(void)
const char *serviceName = SERVICE_NAME;
ConfigParam *param;
- zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED);
- if (zeroconfEnabled == -1)
+ zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED, 1);
+ if (zeroconfEnabled == CONF_BOOL_UNSET)
zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED;
- else if (zeroconfEnabled < 0)
- exit(EXIT_FAILURE);
if (!zeroconfEnabled)
return;