diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-01-15 23:46:35 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-01-15 23:46:35 -0600 |
commit | 07fbdd41190c7a00db5cc350a4d200f0668a78ad (patch) | |
tree | 2394758d8c148ca2b2a70cd8444b886551278c75 /src | |
parent | 909002e29bd709534cb771284dd8919aff6d1665 (diff) | |
download | pfsense-07fbdd41190c7a00db5cc350a4d200f0668a78ad.zip pfsense-07fbdd41190c7a00db5cc350a4d200f0668a78ad.tar.gz |
Allow /31 to be used for CARP IPs. Ticket #5533
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/firewall_virtual_ip_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_virtual_ip_edit.php b/src/usr/local/www/firewall_virtual_ip_edit.php index 9556b53..9df1f98 100644 --- a/src/usr/local/www/firewall_virtual_ip_edit.php +++ b/src/usr/local/www/firewall_virtual_ip_edit.php @@ -176,7 +176,7 @@ if ($_POST) { /* ipalias and carp should not use network or broadcast address */ if ($_POST['mode'] == "ipalias" || $_POST['mode'] == "carp") { - if (is_ipaddrv4($_POST['subnet']) && $_POST['subnet_bits'] != "32") { + if (is_ipaddrv4($_POST['subnet']) && $_POST['subnet_bits'] != "32" && $_POST['subnet_bits'] != "31") { $network_addr = gen_subnet($_POST['subnet'], $_POST['subnet_bits']); $broadcast_addr = gen_subnet_max($_POST['subnet'], $_POST['subnet_bits']); } else if (is_ipaddrv6($_POST['subnet']) && $_POST['subnet_bits'] != "128") { |