diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 3b3be513a..9fc6fc297 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1019,23 +1019,7 @@ default: set iface name {$ifcfg['if']} EOD; - $setdefaultgw = false; - $founddefaultgw = false; - if (isset($config['gateways']['gateway_item'])) { - foreach ($config['gateways']['gateway_item'] as $gateway) { - if ($interface == $gateway['interface'] && isset($gateway['defaultgw'])) { - $setdefaultgw = true; - break; - } elseif (isset($gateway['defaultgw']) && !empty($gateway['interface'])) { - $founddefaultgw = true; - break; - } - } - } - if (!$founddefaultgw || $setdefaultgw) { - $mpdconf .= " set iface route default\n"; - } if (isset($ppp['ondemand'])) { $mpdconf .= " set iface enable on-demand\n"; } else {