summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-12-04 19:45:28 -0600
committerChris Buechler <cmb@pfsense.org>2015-12-04 19:45:28 -0600
commit688281254c7ca95b28141e901570dc85eb234dfa (patch)
tree541a227b9a78e4e96e6b906f7a2df06823c4936b /src/usr/local/www/firewall_nat_edit.php
parent9b0947bbc488fee7670dc5e42813ec49f76c0e70 (diff)
downloadpfsense-688281254c7ca95b28141e901570dc85eb234dfa.zip
pfsense-688281254c7ca95b28141e901570dc85eb234dfa.tar.gz
Fix VIP listing in firewall_nat_edit.php dst field
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_edit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index f342c23..f0aea90 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -574,10 +574,10 @@ function build_dsttype_list() {
if (is_array($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $sn) {
- if (isset($sn['noexpand']))
- continue;
-
if ($sn['mode'] == "proxyarp" && $sn['type'] == "network") {
+ if (isset($sn['noexpand'])) {
+ continue;
+ }
$start = ip2long32(gen_subnet($sn['subnet'], $sn['subnet_bits']));
$end = ip2long32(gen_subnet_max($sn['subnet'], $sn['subnet_bits']));
$len = $end - $start;
@@ -589,6 +589,8 @@ function build_dsttype_list() {
}
$list[$sn['subnet']] = $sn['subnet'] . ' (' . $sn['descr'] . ')';
+ } else {
+ $list[$sn['subnet']] = $sn['subnet'] . ' (' . $sn['descr'] . ')';
}
}
}
OpenPOWER on IntegriCloud