Révision 12c88700
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/firewall_virtual_ip_edit.php | ||
---|---|---|
142 | 142 |
/* make sure new ip is within the subnet of a valid ip |
143 | 143 |
* on one of our interfaces (wan, lan optX) |
144 | 144 |
*/ |
145 |
switch ($_POST['mode']) { |
|
146 |
case "carp": |
|
145 |
if ($_POST['mode'] == 'carp') { |
|
147 | 146 |
/* verify against reusage of vhids */ |
148 | 147 |
$idtracker = 0; |
149 | 148 |
foreach($config['virtualip']['vip'] as $vip) { |
... | ... | |
171 | 170 |
|
172 | 171 |
if ($_POST['interface'] == "lo0") |
173 | 172 |
$input_errors[] = gettext("For this type of vip localhost is not allowed."); |
174 |
break; |
|
175 |
default: |
|
176 |
if ($_POST['interface'] == "lo0") |
|
177 |
$input_errors[] = gettext("For this type of vip localhost is not allowed."); |
|
178 |
break; |
|
179 |
} |
|
173 |
} else if ($_POST['mode'] != 'ipalias' && $_POST['interface'] == "lo0") |
|
174 |
$input_errors[] = gettext("For this type of vip localhost is not allowed."); |
|
180 | 175 |
|
181 | 176 |
if (!$input_errors) { |
182 | 177 |
$vipent = array(); |
Formats disponibles : Unified diff
Allow to add ipalias vip to lo0, it should fix #3773