summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-17 19:39:30 +0000
committerErmal <eri@pfsense.org>2010-06-17 19:39:30 +0000
commit5082282c3a4cfaed950dee0d8aaf6b7a6a7e7dfe (patch)
tree408f68f6ba4519e48ee5d89b8e0c109dd3e7123a /usr/local
parent34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b (diff)
downloadpfsense-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.inc6
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;
}
OpenPOWER on IntegriCloud