summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorMichael Newton <miken32@gmail.com>2013-02-14 16:11:34 -0800
committerMichael Newton <miken32@gmail.com>2013-02-14 16:11:34 -0800
commite35ab948a3f9bbf016a1317cdd3c527761d86d79 (patch)
tree8f104508f9a6265b47916dc10fd1926f61ea298c /etc/inc/captiveportal.inc
parentcf2859f3f792c6630214d3ac2880f2a9154737b3 (diff)
downloadpfsense-e35ab948a3f9bbf016a1317cdd3c527761d86d79.zip
pfsense-e35ab948a3f9bbf016a1317cdd3c527761d86d79.tar.gz
only send Accounting-On at boot; can't tell if CP's being newly enabled or not
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 3f91627..c63e3c9 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -338,11 +338,11 @@ EOD;
unlink_if_exists("{$g['vardb_path']}/captiveportal_radius_{$cpzone}.db");
captiveportal_init_radius_servers();
- /* send Accounting-On to server */
- captiveportal_send_server_accounting();
-
- if ($g['booting'])
+ if ($g['booting']) {
+ /* send Accounting-On to server */
+ captiveportal_send_server_accounting();
echo "done\n";
+ }
} else {
killbypid("{$g['varrun_path']}/lighty-{$cpzone}-CaptivePortal.pid");
OpenPOWER on IntegriCloud