XX-Net
XX-Net copied to clipboard
修正 listen_ip 为 IPv6 地址时 simple_http_server 格式化失败
当 listen_ip 为 IPv6 地址,比如 ::1 时,simple_http_server 回报错误:
2024-01-21 05:48:21.953 - [ERROR] serve except:TypeError('not all arguments converted during string formatting')
2024-01-21 05:48:21.956 - [ERROR] Except stack:Traceback (most recent call last): File "/[redacted]/XX-Net/code/default/lib/noarch/simple_http_server.py", line 611, in serve_forever self.process_connect(sock, address) File "/[redacted]/XX-Net/code/default/lib/noarch/simple_http_server.py", line 628, in process_connect client_thread = threading.Thread(target=client_obj.handle, name="handle_undefined:%d" % address) ~~~~~~~~~~~~~~~^~~~~~~~~ TypeError: not all arguments converted during string formatting