mirror of
https://github.com/honmashironeko/ProxyCat.git
synced 2026-10-27 19:10:55 +00:00
Update getip.py
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -34,8 +34,8 @@ def newip():
|
||||
proxy = get_proxy()
|
||||
|
||||
if username and password:
|
||||
return f"socks5://{username}:{password}@{proxy}"
|
||||
return f"socks5://{proxy}"
|
||||
return f"http://{username}:{password}@{proxy}"
|
||||
return f"http://{proxy}"
|
||||
|
||||
except requests.RequestException as e:
|
||||
handle_error('request', e)
|
||||
|
||||
Reference in new issue
Block a user