From 953975dd3bf60d7be2bcf004c20427b681e1dfb8 Mon Sep 17 00:00:00 2001 From: murmur Date: Sun, 12 Mar 2023 13:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0tcp=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 8c569a1..610f2a1 100755 --- a/server.py +++ b/server.py @@ -230,7 +230,7 @@ if __name__ == "__main__": # load_cache cache = load_cache() - server = socketserver.ThreadingTCPServer(("localhost", 7222), MyServer) + server = socketserver.ThreadingTCPServer(("", 7222), MyServer) ip, port = server.server_address print("服务端已建立:", ip, port) server.serve_forever()