diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index dbfbda717e..e9f1c656bf 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -4941,11 +4941,10 @@ function get_interfaces_with_gateway() { foreach($config['interfaces'] as $ifdescr => $ifname) { switch ($ifname['ipaddr']) { case "dhcp": - case "ppp"; case "pppoe": case "pptp": case "l2tp": - case "ppp"; + case "ppp": $ints[$ifdescr] = $ifdescr; break; default: @@ -4969,7 +4968,7 @@ function interface_has_gateway($friendly) { case "pppoe": case "pptp": case "l2tp": - case "ppp"; + case "ppp": return true; break; default: