summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-15 20:17:46 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-15 20:17:46 +0100
commit89f171b052fbe72aed654d2a1c3d5a24e9bf9902 (patch)
tree88099045c1b9056bd469f156c28e0015c811980e /usr/local/www/services_dnsmasq.php
parent98bf4991dc31f97fc7315a6b8aba433de9d39cea (diff)
downloadpfsense-89f171b052fbe72aed654d2a1c3d5a24e9bf9902.zip
pfsense-89f171b052fbe72aed654d2a1c3d5a24e9bf9902.tar.gz
Ticket #3997, teach code to track carp through uniqids(). Missing carp GUI changes and upgrade code
Diffstat (limited to 'usr/local/www/services_dnsmasq.php')
-rw-r--r--usr/local/www/services_dnsmasq.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 0361932..273f81d 100644
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -270,21 +270,22 @@ function show_advanced_dns() {
<td width="78%" class="vtable">
<?php
$interface_addresses = get_possible_listen_ips(true);
- $size=count($interface_addresses)+1;
?>
<?=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; ?>">
+ <select id="interface" name="interface[]" multiple="multiple" class="formselect" size="5">
<option value="" <?php if (empty($pconfig['interface']) || empty($pconfig['interface'][0])) echo 'selected="selected"'; ?>>All</option>
- <?php foreach ($interface_addresses as $laddr):
+ <?php foreach ($interface_addresses as $laddr => $ldescr):
$selected = "";
- if (in_array($laddr['value'], $pconfig['interface']))
+ if (in_array($laddr, $pconfig['interface']))
$selected = 'selected="selected"';
?>
- <option value="<?=$laddr['value'];?>" <?=$selected;?>>
- <?=htmlspecialchars($laddr['name']);?>
+ <option value="<?=$laddr;?>" <?=$selected;?>>
+ <?=htmlspecialchars($ldescr);?>
</option>
- <?php endforeach; ?>
+ <?php endforeach;
+ unset($interface_addresses);
+ ?>
</select>
<br /><br />
</td>
OpenPOWER on IntegriCloud