diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-07 10:54:39 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-07 10:55:30 +0000 |
commit | 4d828a9a8462389f1decbb4412818a486ed968f0 (patch) | |
tree | ea5ec5f3a6e8dd7e24080e09af3af8b374cc2050 /usr/local/www/guiconfig.inc | |
parent | 2779830353aac351969eabd4e403c84e8c984c51 (diff) | |
download | pfsense-4d828a9a8462389f1decbb4412818a486ed968f0.zip pfsense-4d828a9a8462389f1decbb4412818a486ed968f0.tar.gz |
Fix interface list usage
WARN: Please ask before introducing old code on what have changed!
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index f7de688..bec591e 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -179,7 +179,7 @@ $wkports = array( 69 => "TFTP", 5900 => "VNC"); -$specialnets = array("wanip" => "WAN address", "lanip" => "LAN address", "lan" => "LAN net", "pptp" => "PPTP clients"); +$specialnets = array("wanip" => "WAN address", "lanip" => "LAN address", "lan" => "LAN net", "pptp" => "PPTP clients", "pppoe" => "PPPoE client", "l2tp" => "L2TP clients"); $spiflist = get_configured_interface_with_descr(true, true); foreach ($spiflist as $ifgui => $ifdesc) { @@ -587,8 +587,9 @@ function pconfig_to_address(&$adr, $padr, $pmask, $pnot=false, $pbeginport=0, $p function is_specialnet($net) { global $specialsrcdst; - if(!$net) - return false; + + if(!$net) + return false; if (in_array($net, $specialsrcdst) || strstr($net, "opt")) return true; else @@ -1078,4 +1079,4 @@ function download_file_with_progress_bar($url_file, $destination_file, $readbody return ($http_code == 200) ? true : $http_code; } -?>
\ No newline at end of file +?> |