summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-02-10 11:18:28 +0100
committerSeth Mos <seth.mos@dds.nl>2011-02-10 11:18:28 +0100
commit6715c2a295ecdee663e5d185284c72dff815518e (patch)
tree88dbdcefd25cb30e485c883b7145b5ea0dd5969b /usr/local/www/firewall_virtual_ip_edit.php
parent652ed95d3d4cfea97610cf4994d86b4f67d8fb4a (diff)
downloadpfsense-6715c2a295ecdee663e5d185284c72dff815518e.zip
pfsense-6715c2a295ecdee663e5d185284c72dff815518e.tar.gz
Fix the IP address check to allow for interfaces that just have a IPv6 address but no IPv4
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 3dbb31c..e5581ca 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -112,8 +112,8 @@ if ($_POST) {
$natiflist = get_configured_interface_with_descr();
foreach ($natiflist as $natif => $natdescr) {
- if ($_POST['interface'] == $natif && empty($config['interfaces'][$natif]['ipaddr']))
- $input_errors[] = gettext("The interface chosen for the VIP has no ip configured so it cannot be used as a parent for the VIP.");
+ if ($_POST['interface'] == $natif && (empty($config['interfaces'][$natif]['ipaddr']) && empty($config['interfaces'][$natif]['ipaddrv6'])))
+ $input_errors[] = gettext("The interface chosen for the VIP has no IPv4 or IPv6 address configured so it cannot be used as a parent for the VIP.");
if ($_POST['subnet'] == get_interface_ip($natif))
$input_errors[] = sprintf(gettext("The %s IP address may not be used in a virtual entry."),$natdescr);
}
OpenPOWER on IntegriCloud