You've already forked haproxy-wi
mirror of
https://github.com/roxy-wi/roxy-wi.git
synced 2025-12-15 11:54:05 +08:00
v3.9.3
Bugs fix, a new version haproxy
This commit is contained in:
@@ -53,12 +53,14 @@ def logging(serv, action, **kwargs):
|
||||
|
||||
try:
|
||||
IP = cgi.escape(os.environ["REMOTE_ADDR"])
|
||||
except:
|
||||
IP = ''
|
||||
try:
|
||||
cookie = http.cookies.SimpleCookie(os.environ.get("HTTP_COOKIE"))
|
||||
user_uuid = cookie.get('uuid')
|
||||
login = sql.get_user_name_by_uuid(user_uuid.value)
|
||||
except:
|
||||
IP = ''
|
||||
login = kwargs.get('login')
|
||||
except:
|
||||
login = ''
|
||||
|
||||
if kwargs.get('alerting') == 1:
|
||||
mess = get_data('date_in_log') + action + "\n"
|
||||
|
||||
Reference in New Issue
Block a user