Skip to content

修正 listen_ip 为 IPv6 地址时 simple_http_server 格式化失败#14004

Open
UjuiUjuMandan wants to merge 1 commit intoXX-net:masterfrom
UjuiUjuMandan:master
Open

修正 listen_ip 为 IPv6 地址时 simple_http_server 格式化失败#14004
UjuiUjuMandan wants to merge 1 commit intoXX-net:masterfrom
UjuiUjuMandan:master

Conversation

@UjuiUjuMandan
Copy link
Copy Markdown

当 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant