summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-03-06 13:27:57 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2014-03-06 13:27:57 +0000
commit89b12ed35bd13a5ed70c9940208d87660cdedd15 (patch)
treefe5633f59b3af5148a400f9cfd50fc4c71dc6290
parent1a9a3489ecbc92f520656cf50f4301d8c73d1d8e (diff)
downloaddnsmasq-89b12ed35bd13a5ed70c9940208d87660cdedd15.tar.gz
OPT_LOCAL_SERVICE needs up-to-date interface list too.
-rw-r--r--src/network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c
index 3cc5a4d..3db7c43 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1570,7 +1570,8 @@ void newaddress(time_t now)
{
(void)now;
- if (option_bool(OPT_CLEVERBIND) || daemon->doing_dhcp6 || daemon->relay6 || daemon->doing_ra)
+ if (option_bool(OPT_CLEVERBIND) || option_bool(OPT_LOCAL_SERVICE) ||
+ daemon->doing_dhcp6 || daemon->relay6 || daemon->doing_ra)
enumerate_interfaces(0);
if (option_bool(OPT_CLEVERBIND))