mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
use subnet not ipaddr
This commit is contained in:
parent
49424ec009
commit
10b079adb9
@ -143,8 +143,8 @@ if ($_POST) {
|
||||
if (isset($id) && $a_vip[$id]) {
|
||||
/* modify all virtual IP rules with this address */
|
||||
for ($i = 0; isset($config['nat']['rule'][$i]); $i++) {
|
||||
if ($config['nat']['rule'][$i]['external-address'] == $a_vip[$id]['ipaddr'])
|
||||
$config['nat']['rule'][$i]['external-address'] = $vipent['ipaddr'];
|
||||
if ($config['nat']['rule'][$i]['external-address'] == $a_vip[$id]['subnet'])
|
||||
$config['nat']['rule'][$i]['external-address'] = $vipent['subnet'];
|
||||
}
|
||||
$a_vip[$id] = $vipent;
|
||||
} else
|
||||
@ -388,4 +388,4 @@ typesel_change();
|
||||
</script>
|
||||
<?php include("fend.inc"); ?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user