diff options
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 6725ef3..a458cad 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2310,11 +2310,11 @@ function get_interfaces_with_gateway() { /* loop interfaces, check config for outbound */ foreach ($config['interfaces'] as $ifdescr => $ifname) { - switch ($$ifname['ipaddr']) { - case "dhcp": - case "carpdev-dhcp": - case "pppoe": - case "pptp": + switch ($ifname['ipaddr']) { + case "dhcp": + case "carpdev-dhcp": + case "pppoe": + case "pptp": $ints[] = $ifdescr; break; default: @@ -2490,4 +2490,4 @@ function setup_pppoe_reset_file($interface, $status) { } } -?> +?>
\ No newline at end of file |