diff options
author | Michael Newton <miken32@gmail.com> | 2013-02-14 16:11:34 -0800 |
---|---|---|
committer | Michael Newton <miken32@gmail.com> | 2013-02-14 16:11:34 -0800 |
commit | e35ab948a3f9bbf016a1317cdd3c527761d86d79 (patch) | |
tree | 8f104508f9a6265b47916dc10fd1926f61ea298c | |
parent | cf2859f3f792c6630214d3ac2880f2a9154737b3 (diff) | |
download | pfsense-e35ab948a3f9bbf016a1317cdd3c527761d86d79.zip pfsense-e35ab948a3f9bbf016a1317cdd3c527761d86d79.tar.gz |
only send Accounting-On at boot; can't tell if CP's being newly enabled or not
-rw-r--r-- | etc/inc/captiveportal.inc | 8 |
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"); |