Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
only send Accounting-On at boot; can't tell if CP's being newly enabl…
…ed or not
  • Loading branch information
miken32 committed Feb 15, 2013
1 parent cf2859f commit e35ab94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etc/inc/captiveportal.inc
Expand Up @@ -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");
Expand Down

0 comments on commit e35ab94

Please sign in to comment.