diff options
author | smos <seth.mos@dds.nl> | 2013-01-05 19:36:29 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2013-01-05 19:36:29 +0100 |
commit | 5dbd619f4ac4f3ae161b7cf85ac82c9937cd62cc (patch) | |
tree | 51fc0468e6b2ce4a94a52fd04d35e8cd7d6de199 /etc/inc/util.inc | |
parent | 2b6f7508db551986ba8980b36445783b16905b72 (diff) | |
download | pfsense-5dbd619f4ac4f3ae161b7cf85ac82c9937cd62cc.zip pfsense-5dbd619f4ac4f3ae161b7cf85ac82c9937cd62cc.tar.gz |
Add the PPPoE Server IP addresses to the locally configured addresses, this prevents the HTTP_REFERER check from triggering.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index a86fe92..1e5fb79 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -800,6 +800,7 @@ function get_configured_interface_with_descr($only_opt = false, $withdisabled = * */ function get_configured_ip_addresses() { + global $config; require_once("interfaces.inc"); $ip_array = array(); $interfaces = get_configured_interface_list(); @@ -813,6 +814,18 @@ function get_configured_ip_addresses() { if(is_array($interfaces)) foreach($interfaces as $int => $ipaddr) $ip_array[$int] = $ipaddr; + + /* pppoe server */ + if (is_array($config['pppoes']['pppoe'])) { + foreach($config['pppoes']['pppoe'] as $pppoe) { + if ($pppoe['mode'] == "server") { + if(is_ipaddr($pppoe['localip'])) { + $int = "pppoes". $pppoe['pppoeid']; + $ip_array[$int] = $pppoe['localip']; + } + } + } + } return $ip_array; } |