Project

General

Profile

« Previous | Next » 

Revision f4e8db1f

Added by Ermal LUÇI almost 15 years ago

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

View differences:

usr/local/www/firewall_virtual_ip_edit.php
110 110

  
111 111
	$natiflist = get_configured_interface_with_descr();
112 112
	foreach ($natiflist as $natif => $natdescr) {
113
		if (empty($config['interfaces'][$natif]['ipaddr']))
113
		if ($_POST['interface'] == $natif && empty($config['interfaces'][$natif]['ipaddr']))
114 114
			$input_errors[] = gettext("The interface choosen for the VIP has no ip configured so it cannot be used as a parent for the VIP.");
115 115
		if ($_POST['subnet'] == get_interface_ip($natif))
116 116
			$input_errors[] = sprintf(gettext("The %s IP address may not be used in a virtual entry."),$natdescr);

Also available in: Unified diff