summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 54e8e4a..58e1867 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -114,10 +114,12 @@ if ($_POST) {
* on one of our interfaces (wan, lan optX)
*/
if ($_POST['mode'] == "carp") {
- /* verify against reusage of vhids */
- foreach($config['virtualip']['vip'] as $vip) {
- if($vip['vhid'] == $_POST['vhid'])
- $input_errors[] = "VHID {$_POST['vhid']} is already in use. Pick a unique number.";
+ if(!$id) {
+ /* verify against reusage of vhids */
+ foreach($config['virtualip']['vip'] as $vip) {
+ if($vip['vhid'] == $_POST['vhid'])
+ $input_errors[] = "VHID {$_POST['vhid']} is already in use. Pick a unique number.";
+ }
}
$can_post = true;
$found = false;
OpenPOWER on IntegriCloud