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]
|
suid = request.args.get('suid', ['0'])[0]
|
||||||
|
|
||||||
remote_addr = request.getClientIP()
|
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':
|
if suid == '0':
|
||||||
# creating a unique id hash string
|
# creating a unique id hash string
|
||||||
suid = md5(str(time.time())).hexdigest()
|
suid = md5(str(time.time())).hexdigest()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue