diff --git a/src/www/firewall_nat_edit.php b/src/www/firewall_nat_edit.php index 9f65a0f08..4e4f6a1c8 100644 --- a/src/www/firewall_nat_edit.php +++ b/src/www/firewall_nat_edit.php @@ -752,7 +752,7 @@ $( document ).ready(function() { foreach ($config['virtualip']['vip'] as $sn): if (isset($sn['noexpand'])) continue; - if ($sn['mode'] == "proxyarp" && $sn['type'] == "network"): + if (in_array($sn['mode'], array("proxyarp", "other")) && $sn['type'] == "network"): $start = ip2long32(gen_subnet($sn['subnet'], $sn['subnet_bits'])); $end = ip2long32(gen_subnet_max($sn['subnet'], $sn['subnet_bits'])); $len = $end - $start; diff --git a/src/www/firewall_nat_out_edit.php b/src/www/firewall_nat_out_edit.php index 1dfd67e74..6289ba986 100644 --- a/src/www/firewall_nat_out_edit.php +++ b/src/www/firewall_nat_out_edit.php @@ -49,7 +49,7 @@ function formTranslateAddresses() { if (isset($config['virtualip']['vip'])) { foreach ($config['virtualip']['vip'] as $sn) { if (!isset($sn['noexpand'])) { - if ($sn['mode'] == "proxyarp" && $sn['type'] == "network") { + if (in_array($sn['mode'], array("proxyarp", "other")) && $sn['type'] == "network") { $start = ip2long32(gen_subnet($sn['subnet'], $sn['subnet_bits'])); $end = ip2long32(gen_subnet_max($sn['subnet'], $sn['subnet_bits'])); $len = $end - $start;