summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-04-25 20:44:05 +0200
committerWarren Baker <warren@decoy.co.za>2014-04-25 20:44:05 +0200
commit1155de41f7eb1e32f7902b6dca67b256baa04fad (patch)
tree402d01fc48ad1542559a2cd1d284597ddb09a859 /usr/local/www/services_unbound.php
parent711720886ed7883b9be22962723c157c65567313 (diff)
downloadpfsense-1155de41f7eb1e32f7902b6dca67b256baa04fad.zip
pfsense-1155de41f7eb1e32f7902b6dca67b256baa04fad.tar.gz
Make sure the correct interface is selected once the config has been saved. Fixes #3620
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r--usr/local/www/services_unbound.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php
index 08a2e6e..ee913f4 100644
--- a/usr/local/www/services_unbound.php
+++ b/usr/local/www/services_unbound.php
@@ -193,7 +193,7 @@ 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="multiple" size="3">
- <option value="" <?php if (empty($pconfig['active_interface'])) echo 'selected="selected"'; ?>>All</option>
+ <option value="" <?php if (empty($pconfig['active_interface']) || empty($pconfig['active_interface'][0])) echo 'selected="selected"'; ?>>All</option>
<?php
foreach ($interface_addresses as $laddr):
$selected = "";
@@ -218,7 +218,7 @@ 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="multiple" size="3">
- <option value="" <?php if (empty($pconfig['outgoing_interface'])) echo 'selected="selected"'; ?>>All</option>
+ <option value="" <?php if (empty($pconfig['outgoing_interface']) || empty($pconfig['outgoing_interface'][0])) echo 'selected="selected"'; ?>>All</option>
<?php
foreach ($interface_addresses as $laddr):
$selected = "";
OpenPOWER on IntegriCloud