换成sock5代理
This commit is contained in:
@@ -775,7 +775,7 @@ def get_proxy_from_api():
|
||||
proxy_port = proxy_datum['port']
|
||||
|
||||
if proxy_ip and proxy_port:
|
||||
return f"http://{proxy_ip}:{proxy_port}"
|
||||
return f"socks5://{proxy_ip}:{proxy_port}"
|
||||
|
||||
raise OperationFailed("获取代理时出错")
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user