summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-03-29 12:23:39 +0200
committerWarren Baker <warren@decoy.co.za>2014-03-29 12:23:39 +0200
commit44cf13822d3a7a90d956e8ce2ed22eb3cf0e2b1c (patch)
treee522725d010d84027c54f07e818794c66a1d8a32 /usr/local/www/services_unbound.php
parent3b7df5f15b81f271698da90f8397fa3e5960bd05 (diff)
downloadpfsense-44cf13822d3a7a90d956e8ce2ed22eb3cf0e2b1c.zip
pfsense-44cf13822d3a7a90d956e8ce2ed22eb3cf0e2b1c.tar.gz
Make sure interface selection works
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r--usr/local/www/services_unbound.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php
index bcc2a3c..0f6b9eb 100644
--- a/usr/local/www/services_unbound.php
+++ b/usr/local/www/services_unbound.php
@@ -43,8 +43,8 @@ require_once("unbound.inc");
$pconfig['enable'] = isset($config['unbound']['enable']);
$pconfig['port'] = $config['unbound']['port'];
-$pconfig['active_interface'] = $config['unbound']['active_interface'];
-$pconfig['outgoing_interface'] = $config['unbound']['outgoing_interface'];
+$pconfig['active_interface'] = explode(",", $config['unbound']['active_interface']);
+$pconfig['outgoing_interface'] = explode(",", $config['unbound']['outgoing_interface']);
$pconfig['dnssec'] = isset($config['unbound']['dnssec']);
$pconfig['forwarding'] = isset($config['unbound']['forwarding']);
$pconfig['regdhcp'] = isset($config['unbound']['regdhcp']);
@@ -186,10 +186,11 @@ function show_advanced_dns() {
<?=gettext("Interface IPs used by the DNS Resolver for responding to queries from clients. If an interface has both IPv4 and IPv6 IPs, both are used. Queries to other interface IPs not selected below are discarded. The default behavior is to respond to queries on every available IPv4 and IPv6 address.");?>
<br /><br />
<select id="active_interface" name="active_interface[]" multiple="true" size="3">
- <option value="" <?php if (empty($pconfig['interface'])) echo 'selected="selected"'; ?>>All</option>
- <?php foreach ($interface_addresses as $laddr):
+ <option value="" <?php if (empty($pconfig['active_interface'])) echo 'selected="selected"'; ?>>All</option>
+ <?php
+ foreach ($interface_addresses as $laddr):
$selected = "";
- if (in_array($laddr['value'], $pconfig['interface']))
+ if (in_array($laddr['value'], $pconfig['active_interface']))
$selected = 'selected="selected"';
?>
<option value="<?=$laddr['value'];?>" <?=$selected;?>>
@@ -210,10 +211,11 @@ function show_advanced_dns() {
<?=gettext("Utilize different network interface(s) that the DNS Resolver will use to send queries to authoritative servers and receive their replies. By default all interfaces are used.");?>
<br /><br />
<select id="outgoing_interface" name="outgoing_interface[]" multiple="true" size="3">
- <option value="" <?php if (empty($pconfig['interface'])) echo 'selected="selected"'; ?>>All</option>
- <?php foreach ($interface_addresses as $laddr):
+ <option value="" <?php if (empty($pconfig['outgoing_interface'])) echo 'selected="selected"'; ?>>All</option>
+ <?php
+ foreach ($interface_addresses as $laddr):
$selected = "";
- if (in_array($laddr['value'], $pconfig['interface']))
+ if (in_array($laddr['value'], $pconfig['outgoing_interface']))
$selected = 'selected="selected"';
?>
<option value="<?=$laddr['value'];?>" <?=$selected;?>>
OpenPOWER on IntegriCloud