Skip to content

Commit

Permalink
Fix listen address cannot be IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
UjuiUjuMandan authored Jan 15, 2024
1 parent 0109722 commit 0549015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accesser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def handle(reader, writer):
with closing(writer):
raw_request = await reader.readuntil(b'\r\n\r\n')
requestline = raw_request.decode('iso-8859-1').splitlines()[0]
i_addr, i_port = writer.get_extra_info('peername')
i_addr, i_port, *_ = writer.get_extra_info('peername')
logger.debug(f"{i_addr}:{i_port} say: {requestline}")
words = requestline.split()
command, path = words[:2]
Expand Down

0 comments on commit 0549015

Please sign in to comment.