From f4d6287f1734b759a5574f49c4409092c3d56c5b Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 20 Mar 2011 12:10:51 +0100 Subject: [PATCH] Add IPv6 configuration option Disabled in the default config file, but enabled by default if not specified, for backward compatibility. --- forked-daapd.conf | 2 ++ src/conffile.c | 1 + 2 files changed, 3 insertions(+) diff --git a/forked-daapd.conf b/forked-daapd.conf index bf056f14..b4c530c7 100644 --- a/forked-daapd.conf +++ b/forked-daapd.conf @@ -9,6 +9,8 @@ general { loglevel = log # Admin password for the non-existent web interface admin_password = "unused" + # Enable/disable IPv6 + ipv6 = no } # Library configuration diff --git a/src/conffile.c b/src/conffile.c index 589380a8..030a1161 100644 --- a/src/conffile.c +++ b/src/conffile.c @@ -47,6 +47,7 @@ static cfg_opt_t sec_general[] = CFG_STR("logfile", STATEDIR "/log/" PACKAGE ".log", CFGF_NONE), CFG_STR("db_path", STATEDIR "/cache/" PACKAGE "/songs3.db", CFGF_NONE), CFG_INT_CB("loglevel", E_LOG, CFGF_NONE, &cb_loglevel), + CFG_BOOL("ipv6", cfg_true, CFGF_NONE), CFG_END() };