From 93bf209924deaedc4aebc1954fcabef4ed46e79b Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 9 Dec 2024 12:52:13 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 865aa5c..ba52b64 100644 --- a/server.py +++ b/server.py @@ -20,7 +20,7 @@ with open(sys.argv[1], 'r') as file: ip = get('https://api.ipify.org').content.decode('utf8') tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) tcp_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) -server_address = ('0.0.0.0', 6667) +server_address = ('', 6667) tcp_socket.bind(server_address) tcp_socket.listen(1) nickname_list = {} # Stores nicknames and the respective sockets