diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 9678d75..86025bc 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -116,9 +116,11 @@ if ($_POST) { if ($_POST['mode'] == "carp") { if(!$id) { /* verify against reusage of vhids */ + $idtracker=0; foreach($config['virtualip']['vip'] as $vip) { - if($vip['vhid'] == $_POST['vhid']) + if($vip['vhid'] == $_POST['vhid'] and $idtracker <> $id) $input_errors[] = "VHID {$_POST['vhid']} is already in use. Pick a unique number."; + $idtracker++; } } if($_POST['password'] == "") |