summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index d20544b..dd08e64 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -200,14 +200,6 @@ if ($_POST) {
$save = true;
/* if we are processing a system gateway only save the monitorip */
if (!$save && (empty($_POST['gateway']) || $_POST['gateway'] == "dynamic")) {
- if (is_ipaddr($_POST['monitor'])) {
- if (empty($_POST['interface']))
- $interface = $pconfig['friendlyiface'];
- else
- $interface = $_POST['interface'];
- if (!empty($interface))
- $config['interfaces'][$interface]['monitorip'] = $_POST['monitor'];
- }
/* when dynamic gateway is not anymore a default the entry is no more needed. */
if (isset($id) && $a_gateway_item[$id])
unset($a_gateway_item[$id]);
OpenPOWER on IntegriCloud