Skip to content

Commit

Permalink
fix: avoid error on "ip:port:port" format (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaryuan authored Jan 1, 2024
1 parent 97229e6 commit 0033586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxypool/utils/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def convert_proxy_or_proxies(data):
if is_auth_proxy(item):
host, port = extract_auth_proxy(item)
else:
host, port = item.split(':')
host, port, *_ = item.split(':')
result.append(Proxy(host=host, port=int(port)))
return result
if isinstance(data, str) and is_valid_proxy(data):
Expand Down

0 comments on commit 0033586

Please sign in to comment.