Révision 4665dbdd
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/firewall_virtual_ip_edit.php | ||
---|---|---|
119 | 119 |
if (isset($id) && isset($a_vip[$id])) { |
120 | 120 |
$ignore_if = $a_vip[$id]['interface']; |
121 | 121 |
$ignore_mode = $a_vip[$id]['mode']; |
122 |
if (isset($a_vip[$id]['vhid'])) |
|
123 |
$ignore_vhid = $a_vip[$id]['vhid']; |
|
122 | 124 |
} else { |
123 | 125 |
$ignore_if = $_POST['interface']; |
124 | 126 |
$ignore_mode = $_POST['mode']; |
125 | 127 |
} |
126 | 128 |
|
129 |
if (!isset($ignore_vhid)) |
|
130 |
$ignore_vhid = $_POST['vhid']; |
|
131 |
|
|
127 | 132 |
if ($ignore_mode == 'carp') |
128 |
$ignore_if .= "_vip{$id}"; |
|
133 |
$ignore_if .= "_vip{$ignore_vhid}"; |
|
134 |
else |
|
135 |
$ignore_if .= "_virtualip{$id}"; |
|
129 | 136 |
|
130 | 137 |
if (is_ipaddr_configured($_POST['subnet'], $ignore_if)) |
131 | 138 |
$input_errors[] = gettext("This IP address is being used by another interface or VIP."); |
Formats disponibles : Unified diff
Make proper check if IP address is configured on another interfaces and ignore current one. It fixes #3807