diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-05-06 21:46:04 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-05-06 21:46:04 +0000 |
commit | c973b6747f818c4bfd69faa6eaf476c3c6a25935 (patch) | |
tree | 734d0c222cbb87c06081c1a9d469bbe6512de79f /etc | |
parent | 3bb8342226f48b59ff337f2b888737c468999fc6 (diff) | |
download | pfsense-c973b6747f818c4bfd69faa6eaf476c3c6a25935.zip pfsense-c973b6747f818c4bfd69faa6eaf476c3c6a25935.tar.gz |
Return the virtual interface for PPPoE
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 8bef028..a60afbf 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1696,6 +1696,8 @@ function execute_command_return_output($command) { */ function convert_friendly_interface_to_real_interface_name($interface) { global $config; + if($config['interfaces'][$interface]['ipaddr'] == "pppoe") + return "ng0"; $lc_interface = strtolower($interface); if($lc_interface == "lan") return $config['interfaces']['lan']['if']; if($lc_interface == "wan") return $config['interfaces']['wan']['if']; @@ -3403,4 +3405,4 @@ function interface_has_gateway($friendly) { } } -?>
\ No newline at end of file +?> |