summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq.php
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-04-25 20:44:58 +0200
committerWarren Baker <warren@decoy.co.za>2014-04-25 20:44:58 +0200
commit5c048099a6972a51e5298e30b2f9df37eb338bfc (patch)
treea7af6801479d05f368a8de782af811d85df13786 /usr/local/www/services_dnsmasq.php
parent1155de41f7eb1e32f7902b6dca67b256baa04fad (diff)
downloadpfsense-5c048099a6972a51e5298e30b2f9df37eb338bfc.zip
pfsense-5c048099a6972a51e5298e30b2f9df37eb338bfc.tar.gz
Make sure the correct interface is selected once the config has been saved for the DNS forwarder
Diffstat (limited to 'usr/local/www/services_dnsmasq.php')
-rw-r--r--usr/local/www/services_dnsmasq.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 3758e67..5fda7ff 100644
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -271,7 +271,7 @@ function show_advanced_dns() {
<?=gettext("Interface IPs used by the DNS Forwarder 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="interface" name="interface[]" multiple="multiple" class="formselect" size="<?php echo $size; ?>">
- <option value="" <?php if (empty($pconfig['interface'])) echo 'selected="selected"'; ?>>All</option>
+ <option value="" <?php if (empty($pconfig['interface']) || empty($pconfig['interface'][0])) echo 'selected="selected"'; ?>>All</option>
<?php foreach ($interface_addresses as $laddr):
$selected = "";
if (in_array($laddr['value'], $pconfig['interface']))
OpenPOWER on IntegriCloud