mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Fix f8328be5cb
so it actually does what it is supposed to do (lstrip removes characters).
This commit is contained in:
parent
9c8f05bc16
commit
543732af3a
@ -262,7 +262,11 @@ class SupyHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
s = super(SupyHTTPRequestHandler, self).address_string()
|
||||
|
||||
# Strip IPv4-mapped IPv6 addresses such as ::ffff:127.0.0.1
|
||||
return s.lstrip('::ffff:')
|
||||
prefix = '::ffff:'
|
||||
if s.startswith(prefix):
|
||||
s = s[len(prefix):]
|
||||
|
||||
return s
|
||||
|
||||
def log_message(self, format, *args):
|
||||
log.info('HTTP request: %s - %s' %
|
||||
|
Loading…
Reference in New Issue
Block a user