mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 06:16:31 +01:00
Changed web client hostname resolver to be more accurate.
This commit is contained in:
parent
7f3633c70a
commit
6ecbda03ea
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class WebClient(resource.Resource):
|
|||
suid = request.args.get('suid', ['0'])[0]
|
||||
|
||||
remote_addr = request.getClientIP()
|
||||
host_string = "%s (%s:%s)" % (SERVERNAME, request.getHost().host, request.getHost().port)
|
||||
host_string = "%s (%s:%s)" % (SERVERNAME, request.getRequestHostname(), request.getHost().port)
|
||||
if suid == '0':
|
||||
# creating a unique id hash string
|
||||
suid = md5(str(time.time())).hexdigest()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue