更新tcp默认地址。
This commit is contained in:
parent
f099d0aa99
commit
953975dd3b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user