summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-07 20:37:43 +0000
committerErmal <eri@pfsense.org>2010-09-07 20:37:43 +0000
commitf4e8db1f8255d892cbe4ab42b4e56be2303ba07b (patch)
tree24cfe20be1e5b1754813eb9c5057bba2108d87a6 /usr/local/www/firewall_virtual_ip_edit.php
parentc3b1ba3fcd6284d2a36b23c5938a3fee4f520cdf (diff)
downloadpfsense-f4e8db1f8255d892cbe4ab42b4e56be2303ba07b.zip
pfsense-f4e8db1f8255d892cbe4ab42b4e56be2303ba07b.tar.gz
Do the check regarding 'none' configured interfaces properly. This fixes breakage on VIP configuration. Reported-by: http://forum.pfsense.org/index.php/topic,28120.0.html
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index 60baccd..ea0e618 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -110,7 +110,7 @@ if ($_POST) {
$natiflist = get_configured_interface_with_descr();
foreach ($natiflist as $natif => $natdescr) {
- if (empty($config['interfaces'][$natif]['ipaddr']))
+ if ($_POST['interface'] == $natif && empty($config['interfaces'][$natif]['ipaddr']))
$input_errors[] = gettext("The interface choosen for the VIP has no ip 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