Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0033586

Browse files
fix: avoid error on "ip:port:port" format (#207)
1 parent 97229e6 commit 0033586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎proxypool/utils/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def convert_proxy_or_proxies(data):
5656
if is_auth_proxy(item):
5757
host, port = extract_auth_proxy(item)
5858
else:
59-
host, port = item.split(':')
59+
host, port, *_ = item.split(':')
6060
result.append(Proxy(host=host, port=int(port)))
6161
return result
6262
if isinstance(data, str) and is_valid_proxy(data):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /