diff options
author | Warren Baker <warren@decoy.co.za> | 2014-04-25 20:44:58 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-04-25 20:44:58 +0200 |
commit | 5c048099a6972a51e5298e30b2f9df37eb338bfc (patch) | |
tree | a7af6801479d05f368a8de782af811d85df13786 /usr | |
parent | 1155de41f7eb1e32f7902b6dca67b256baa04fad (diff) | |
download | pfsense-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')
-rw-r--r-- | usr/local/www/services_dnsmasq.php | 2 |
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'])) |