aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-12-22 18:25:24 +0200
committerWarren Baker <warren@decoy.co.za>2011-12-22 18:25:24 +0200
commit2a88eb374dfb533c2699c3dfb038ef6ee921ce3e (patch)
tree038b6a2135acf438bfa19192c17de03e74976e5c /config/unbound
parenta48ebc8b859866227ed8230d69306b986f05630e (diff)
downloadpfsense-packages-2a88eb374dfb533c2699c3dfb038ef6ee921ce3e.tar.gz
pfsense-packages-2a88eb374dfb533c2699c3dfb038ef6ee921ce3e.tar.bz2
pfsense-packages-2a88eb374dfb533c2699c3dfb038ef6ee921ce3e.zip
Ensure loopback address is not affected
Diffstat (limited to 'config/unbound')
-rw-r--r--config/unbound/unbound.inc6
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";
}