Browse Source

Fix getting addr from an ipv6 context address

pull/104/head
Sheng 5 years ago
parent
commit
15740538f7
  1. 4
      webssh/handler.py

4
webssh/handler.py

@ -257,9 +257,9 @@ class MixinHandler(object):
def get_client_addr(self):
if options.xheaders:
return self.get_real_client_addr() or self.context.address
return self.get_real_client_addr() or self.context.address[:2]
else:
return self.context.address
return self.context.address[:2]
def get_real_client_addr(self):
ip = self.request.remote_ip

Loading…
Cancel
Save