summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2013-01-05 19:36:29 +0100
committersmos <seth.mos@dds.nl>2013-01-05 19:36:29 +0100
commit5dbd619f4ac4f3ae161b7cf85ac82c9937cd62cc (patch)
tree51fc0468e6b2ce4a94a52fd04d35e8cd7d6de199
parent2b6f7508db551986ba8980b36445783b16905b72 (diff)
downloadpfsense-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.
-rw-r--r--etc/inc/util.inc13
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;
}
OpenPOWER on IntegriCloud