summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-08-31 17:06:17 +0000
committerErmal Luçi <eri@pfsense.org>2008-08-31 17:06:17 +0000
commit67ac4e8d3b4cb1b9f63522d846e10cb62371481a (patch)
treef4083e51e38d5ddd4e4c607ef9b49d32c531623b /etc
parent278aa4f4a298ce4d17daa7a6a39a85a1302aeacc (diff)
downloadpfsense-67ac4e8d3b4cb1b9f63522d846e10cb62371481a.zip
pfsense-67ac4e8d3b4cb1b9f63522d846e10cb62371481a.tar.gz
Integrate part of the patch from ticket #1807.
The other part is already done on pppoe_up script in /usr/local/sbin.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 784cd08..cd3532b 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -3379,7 +3379,7 @@ function update_filter_reload_status($text) {
}
function get_interface_gateway($interface) {
- global $config;
+ global $config, $g;
/* if wan is requested, return it */
if($interface == "wan")
@@ -3412,9 +3412,9 @@ function get_interface_gateway($interface) {
}
}
- // for dynamic interfaces we handle them through the $if_router file.
+ // for dynamic interfaces we handle them through the $interface_router file.
if (!is_ipaddr($gw)) {
- $realif = get_real_wan_interface($if);
+ $realif = get_real_wan_interface($interface);
if (file_exists("{$g['tmp_path']}/{$realif}_router")) {
$gw = file_get_contents("{$g['tmp_path']}/{$realif}_router");
$gw = rtrim($gw);
OpenPOWER on IntegriCloud