diff options
author | Ermal <eri@pfsense.org> | 2010-03-28 21:13:28 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-28 21:13:28 +0000 |
commit | b28e0842964cf93256f919538cf2e8a59fe80fe8 (patch) | |
tree | a9fca5f9bc5e1107d9013f58fa606fb4e5479a15 /etc/inc/interfaces.inc | |
parent | c107a2ac273f2a48660d660be847f5cda675ddc9 (diff) | |
download | pfsense-b28e0842964cf93256f919538cf2e8a59fe80fe8.zip pfsense-b28e0842964cf93256f919538cf2e8a59fe80fe8.tar.gz |
Propperly choose interface name from correct variable.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0d8972e..9b53b58 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -892,10 +892,10 @@ function interface_ppp_configure($interface) { if (!$ppp || empty($ppp['port'])) return; - if ($ifname == "wan") + if ($interface == "wan") $pppid = "0"; else - $pppid = substr($ifname, 3); + $pppid = substr($interface, 3); $pppif = "ppp{$pppid}"; @@ -950,7 +950,7 @@ pppclient: set iface up-script /usr/local/sbin/ppp-linkup set iface down-script /usr/local/sbin/ppp-linkdown set ipcp ranges {$localip}/0 {$localgw}/0 - + EOD; if (isset($config['system']['dnsallowoverride'])) { @@ -2227,7 +2227,7 @@ EOD; set link accept chap set pppoe iface {$wancfg['if']} set pppoe service "{$wancfg['provider']}" - + EOD; if (empty($wancfg['mtu'])) $mpdmtu = "1492"; |