Changed web client hostname resolver to be more accurate.

This commit is contained in:
Griatch 2010-12-11 15:07:19 +00:00
parent 7f3633c70a
commit 6ecbda03ea

View file

@ -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()