Permalink
Browse files

only send Accounting-On at boot; can't tell if CP's being newly enabl…

…ed or not
  • Loading branch information...
1 parent cf2859f commit e35ab948a3f9bbf016a1317cdd3c527761d86d79 @miken32 miken32 committed Feb 15, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 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");

0 comments on commit e35ab94

Please sign in to comment.