diff options
author | Warren Baker <warren@decoy.co.za> | 2011-12-22 18:25:24 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-12-22 18:25:24 +0200 |
commit | 2a88eb374dfb533c2699c3dfb038ef6ee921ce3e (patch) | |
tree | 038b6a2135acf438bfa19192c17de03e74976e5c | |
parent | a48ebc8b859866227ed8230d69306b986f05630e (diff) | |
download | pfsense-packages-2a88eb374dfb533c2699c3dfb038ef6ee921ce3e.tar.gz pfsense-packages-2a88eb374dfb533c2699c3dfb038ef6ee921ce3e.tar.bz2 pfsense-packages-2a88eb374dfb533c2699c3dfb038ef6ee921ce3e.zip |
Ensure loopback address is not affected
-rw-r--r-- | config/unbound/unbound.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc index 26109224..6588c5c2 100644 --- a/config/unbound/unbound.inc +++ b/config/unbound/unbound.inc @@ -403,16 +403,16 @@ function unbound_resync_config() { foreach($unboundnetcfg as $netent) { foreach($netent as $entry) { # If virtual interface then skip - if (!$entry['network'] && !$entry['subnet']) + if (!$entry['network'] && !$entry['subnet'] && ($entry['ipaddr'] != "127.0.0.1" && $entry['ipaddr'] != "::1")) continue; $unbound_bind_interfaces .="interface: {$entry['ipaddr']}\n"; - if($entry['ipaddr'] != "127.0.0.1" && $entry['ipaddr'] != "::1" ) + if($entry['ipaddr'] != "127.0.0.1" && $entry['ipaddr'] != "::1") $unbound_allowed_networks .= "access-control: {$entry['network']}/{$entry['subnet']} allow\n"; } } if($unboundquerycfg = unbound_get_query_interface_addresses()) { + $unbound_query_interfaces = "# Interfaces to query from\n"; foreach($unboundquerycfg as $qent) { - $unbound_query_interfaces = "# Interfaces to query from\n"; foreach($qent as $entry) $unbound_query_interfaces .= "outgoing-interface: {$entry['ipaddr']}\n"; } |