Firewall / VIP, missing "other" type in vip expand, closes https://github.com/opnsense/core/issues/2783

This commit is contained in:
Ad Schellevis 2018-10-29 21:07:17 +01:00
parent 9c947a748e
commit 9ee4921d42
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;