unbound: fix local dns synthesis corner cases

Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
Eric Luehrsen
2019-04-29 22:27:53 -04:00
parent 57c8837af1
commit 1077a04b76
3 changed files with 8 additions and 4 deletions
+3 -2
View File
@@ -112,10 +112,11 @@ bundle_all_networks() {
bundle_lan_networks() {
local cfg="$1"
local ifsubnet ifname ifdashname ignore
local interface ifsubnet ifname ifdashname ignore
config_get_bool ignore "$cfg" ignore 0
network_get_device ifname "$cfg"
config_get interface "$cfg" interface ""
network_get_device ifname "$interface"
ifdashname="${ifname//./-}"