forked from Firepup650/python-talk
::
, not ::1
This commit is contained in:
parent
426fa341ce
commit
f90c4f40c8
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ async def runServer(address: str, port: int):
|
|||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Reuse socket
|
||||
sock.bind((address, port))
|
||||
except OSError as E:
|
||||
if E.errno != 97 or address != '::1':
|
||||
if E.errno != 97 or address != '::':
|
||||
raise E
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Reuse socket
|
||||
|
|
Loading…
Reference in a new issue