更新tcp默认地址。

This commit is contained in:
murmur 2023-03-12 13:32:32 +08:00
parent f099d0aa99
commit 953975dd3b

View File

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