diff options
Diffstat (limited to 'src/zeroconf.c')
-rw-r--r-- | src/zeroconf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c index f2945c4cc..dad9a8b7a 100644 --- a/src/zeroconf.c +++ b/src/zeroconf.c @@ -37,10 +37,8 @@ void initZeroconf(void) const char *serviceName = SERVICE_NAME; struct config_param *param; - zeroconfEnabled = getBoolConfigParam(CONF_ZEROCONF_ENABLED, 1); - if (zeroconfEnabled == CONF_BOOL_UNSET) - zeroconfEnabled = DEFAULT_ZEROCONF_ENABLED; - + zeroconfEnabled = config_get_bool(CONF_ZEROCONF_ENABLED, + DEFAULT_ZEROCONF_ENABLED); if (!zeroconfEnabled) return; |