summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-25 05:45:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-25 05:45:24 +0000
commit2db680e1ab7c9bcd0eb8c9724caf62ad2b287011 (patch)
tree23807a865a9f738df97315a6edd68f7eea382ff1 /usr/local/www/firewall_virtual_ip_edit.php
parent3d33b09e81d66fca13943a1b4ad3a20bf939610d (diff)
downloadpfsense-2db680e1ab7c9bcd0eb8c9724caf62ad2b287011.zip
pfsense-2db680e1ab7c9bcd0eb8c9724caf62ad2b287011.tar.gz
Output CarpDEV-DHCP items correctly. Do not have subnet-bits.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 3470dad..1d5036a 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -109,11 +109,6 @@ if ($_POST) {
}
}
}
-
- if ($_POST['mode'] == "carpdev-dhcp") {
- unset($_POST['subnet']);
- unset($_POST['subnet_bits']);
- }
/* make sure new ip is within the subnet of a valid ip
* on one of our interfaces (wan, lan optX)
@@ -187,6 +182,12 @@ if ($_POST) {
$vipent['subnet'] = $_POST['subnet'];
}
+ if ($_POST['mode'] == "carpdev-dhcp") {
+ unset($vipent['subnet']);
+ unset($vipent['subnet_bits']);
+ unset($vipent['alias-subnet']);
+ }
+
if (isset($id) && $a_vip[$id]) {
/* modify all virtual IP rules with this address */
for ($i = 0; isset($config['nat']['rule'][$i]); $i++) {
@@ -198,7 +199,7 @@ if ($_POST) {
$a_vip[] = $vipent;
touch($d_vipconfdirty_path);
-
+
write_config();
header("Location: firewall_virtual_ip.php");
OpenPOWER on IntegriCloud