diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-06-18 08:15:21 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-06-18 08:15:21 -0300 |
commit | 2edfbe9e8a1876962e37b6ac559fb4f6d9cbc060 (patch) | |
tree | aa41e3e31e62b73901569f3d1f5a899b79599f92 /usr/local/captiveportal/radius_accounting.inc | |
parent | 6132751b0a44d6eb404f09c4d693b2381624c072 (diff) | |
parent | 36ff7f81ca06925903ee8565872454d038753d4b (diff) | |
download | pfsense-2edfbe9e8a1876962e37b6ac559fb4f6d9cbc060.zip pfsense-2edfbe9e8a1876962e37b6ac559fb4f6d9cbc060.tar.gz |
Merge remote branch 'mainline/master'
Diffstat (limited to 'usr/local/captiveportal/radius_accounting.inc')
-rw-r--r-- | usr/local/captiveportal/radius_accounting.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc index 688af74..f57757a 100644 --- a/usr/local/captiveportal/radius_accounting.inc +++ b/usr/local/captiveportal/radius_accounting.inc @@ -67,7 +67,11 @@ function RADIUS_ACCOUNTING_START($ruleno, $username, $sessionid, $radiusservers, break; default: - $calledstationid = get_interface_ip("wan"); + if (is_ipaddr($config['captiveportal']['radiussrcip_attribute'])) + $calledstationid = $config['captiveportal']['radiussrcip_attribute']; + else + $calledstationid = get_interface_ip($config['captiveportal']['radiussrcip_attribute']); + $callingstationid = $clientmac; $callingstationid = $clientmac; } |