diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-10 20:27:11 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-03-10 20:27:11 +0545 |
commit | 3853b43613835a750f85f54d8df9a12de42fa43c (patch) | |
tree | f1ed22eb3193855e8067a48fdb805cdbb29521dc /usr/local/www/services_snmp.php | |
parent | 6127c541cc84fab64acc6a447905b11517725086 (diff) | |
download | pfsense-3853b43613835a750f85f54d8df9a12de42fa43c.zip pfsense-3853b43613835a750f85f54d8df9a12de42fa43c.tar.gz |
Fix SNMP Bind Interface list in master
The format of the array returned by get_possible_listen_ips() was changed.
This use of the returned array was not quite changed correctly. This fixes it so the drop-down list of SNMP Bind Interfaces is displayed correctly.
Note that the change to get_possible_listen_ips() (which also moved the function from system.inc to interfaces.inc) and associated effects is only in master. It has not been applied to RELENG_2_2 yet. So this fix is only needed in master.
I noticed this when using various files from master on a test system.
Diffstat (limited to 'usr/local/www/services_snmp.php')
-rw-r--r-- | usr/local/www/services_snmp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_snmp.php b/usr/local/www/services_snmp.php index cfdd958..d3beb2c 100644 --- a/usr/local/www/services_snmp.php +++ b/usr/local/www/services_snmp.php @@ -425,8 +425,8 @@ function enable_change(whichone) { if ($lip == $pconfig['bindip']) $selected = "selected=\"selected\""; ?> - <option value="<?=$ldescr;?>" <?=$selected;?>> - <?=htmlspecialchars($lip['name']);?> + <option value="<?=$lip;?>" <?=$selected;?>> + <?=htmlspecialchars($ldescr);?> </option> <?php endforeach; unset($listenips); |