Merge manually pull request #1626 to this branch

This commit is contained in:
Ermal LUÇI 2015-04-21 19:43:20 +02:00
parent e1bcb659be
commit 26b94b874f

View File

@ -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: