mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
Firewall / VIP, missing "other" type in vip expand, closes https://github.com/opnsense/core/issues/2783
This commit is contained in:
parent
9c947a748e
commit
9ee4921d42
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user