Commit 23b3fc5c authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) add removal of accounting info to disconnect

parent b35a1ac2
...@@ -51,7 +51,7 @@ if parameters['sessionid'] is not None and parameters['zoneid'] is not None: ...@@ -51,7 +51,7 @@ if parameters['sessionid'] is not None and parameters['zoneid'] is not None:
client_session_info = cp_db.del_client(parameters['zoneid'], parameters['sessionid']) client_session_info = cp_db.del_client(parameters['zoneid'], parameters['sessionid'])
if client_session_info is not None: if client_session_info is not None:
cpIPFW = IPFW() cpIPFW = IPFW()
cpIPFW.delete_from_table(parameters['zoneid'], client_session_info['ip_address']) cpIPFW.delete(parameters['zoneid'], client_session_info['ip_address'])
client_session_info['terminateCause'] = 'User-Request' client_session_info['terminateCause'] = 'User-Request'
response = client_session_info response = client_session_info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment