Commit 85b5bae1 authored by Franco Fichtner's avatar Franco Fichtner

crash reporter: another issue in virtual ip configuration

parent 5b379a6f
...@@ -103,7 +103,7 @@ if ($_GET['act'] == "del") { ...@@ -103,7 +103,7 @@ if ($_GET['act'] == "del") {
$subnet .= "/" . $a_vip[$_GET['id']]['subnet_bits']; $subnet .= "/" . $a_vip[$_GET['id']]['subnet_bits'];
$if_subnet .= "/" . $if_subnet_bits; $if_subnet .= "/" . $if_subnet_bits;
if (is_array($config['gateways']['gateway_item'])) if (isset($config['gateways']['gateway_item'])) {
foreach($config['gateways']['gateway_item'] as $gateway) { foreach($config['gateways']['gateway_item'] as $gateway) {
if ($a_vip[$_GET['id']]['interface'] != $gateway['interface']) if ($a_vip[$_GET['id']]['interface'] != $gateway['interface'])
continue; continue;
...@@ -119,6 +119,7 @@ if ($_GET['act'] == "del") { ...@@ -119,6 +119,7 @@ if ($_GET['act'] == "del") {
break; break;
} }
} }
}
if ($a_vip[$_GET['id']]['mode'] == "ipalias") { if ($a_vip[$_GET['id']]['mode'] == "ipalias") {
$subnet = gen_subnet($a_vip[$_GET['id']]['subnet'], $a_vip[$_GET['id']]['subnet_bits']) . "/" . $a_vip[$_GET['id']]['subnet_bits']; $subnet = gen_subnet($a_vip[$_GET['id']]['subnet'], $a_vip[$_GET['id']]['subnet_bits']) . "/" . $a_vip[$_GET['id']]['subnet_bits'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment