def remove_authorised_client(ip_addr_str=None):
"""Forgets that a client has been seen recently to allow running tests"""
source_ip = request.headers["X-Forwarded-For"]
if source_ip in _client_map:
del _client_map[source_ip]
return Response(status=204)
captive_portal_manager.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录