From e35ab948a3f9bbf016a1317cdd3c527761d86d79 Mon Sep 17 00:00:00 2001 From: Michael Newton Date: Thu, 14 Feb 2013 16:11:34 -0800 Subject: only send Accounting-On at boot; can't tell if CP's being newly enabled or not --- etc/inc/captiveportal.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc/inc') 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"); -- cgit v1.1