summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/system_gateways.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php
index ef70f96..38df88a 100755
--- a/usr/local/www/system_gateways.php
+++ b/usr/local/www/system_gateways.php
@@ -82,6 +82,8 @@ if ($_GET['act'] == "del") {
/* remove the real entry */
$realid = $a_gateways[$_GET['id']]['attribute'];
+ if ($config['interfaces'][$a_gateways[$_GET['id']]['friendlyiface']]['gateway'] == $a_gateways[$_GET['id']]['name'])
+ unset($config['interfaces'][$a_gateways[$_GET['id']]['friendlyiface']]['gateway']);
$changedesc .= "removed gateway {$realid}";
unset($a_gateway_item[$realid]);
write_config($changedesc);
OpenPOWER on IntegriCloud