diff options
author | Ermal <eri@pfsense.org> | 2010-06-17 19:39:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-17 19:39:30 +0000 |
commit | 5082282c3a4cfaed950dee0d8aaf6b7a6a7e7dfe (patch) | |
tree | 408f68f6ba4519e48ee5d89b8e0c109dd3e7123a /usr/local | |
parent | 34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b (diff) | |
download | pfsense-5082282c3a4cfaed950dee0d8aaf6b7a6a7e7dfe.zip pfsense-5082282c3a4cfaed950dee0d8aaf6b7a6a7e7dfe.tar.gz |
Use the configured src ip attribute choosen for accounting too.
Diffstat (limited to 'usr/local')
-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; } |