From 426fa341ce0b8d70b12abe4c0558c99c2666abd4 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 31 Jul 2024 21:50:41 +0000 Subject: [PATCH] `address`, not `hostname` --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 8c4dc00..87638a0 100755 --- a/server.py +++ b/server.py @@ -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 hostname != '::1': + if E.errno != 97 or address != '::1': raise E sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Reuse socket