summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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