diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-03 23:01:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-03 23:01:03 +0000 |
commit | 00b20405f59d484382c6c42de2d2f40795f30313 (patch) | |
tree | a2b5aa22908dc89aed5259212119134890576c5a /etc/inc | |
parent | eccd429a9f5b713c3713737effedcd0925efa1da (diff) | |
download | pfsense-00b20405f59d484382c6c42de2d2f40795f30313.zip pfsense-00b20405f59d484382c6c42de2d2f40795f30313.tar.gz |
Actually disconnect a user correctly
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index c013490..5e0f788 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -319,12 +319,15 @@ function captiveportal_disconnect_client($id) { syslog(LOG_INFO,"Authenticated user $cpdb[$i][4] disconnected"); } + mwexec("/sbin/pfctl -t captiveportal -T delete {$ip}"); + unset($cpdb[$i]); break; } } + /* write database */ captiveportal_write_db($cpdb); |