From 0708bfbd22bc4e0c3a9acecf076c39b55fcb30f4 Mon Sep 17 00:00:00 2001 From: murmur Date: Sun, 19 Mar 2023 17:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=A7=A3=E5=86=B3=E2=80=9C[E?= =?UTF-8?q?rrno=2098]=20Address=20already=20in=20use=E2=80=9D=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= 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 667fd5a..00c923c 100755 --- a/server.py +++ b/server.py @@ -350,7 +350,7 @@ CCID:{get_ccid(self.request)} if __name__ == "__main__": # load_cache cache = load_cache() - + socketserver.TCPServer.allow_reuse_address = True server = socketserver.ThreadingTCPServer(("", 7222), MyServer) add_timestamp() print("服务端初始化成功。", server.server_address)