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()