Update getip.py

This commit is contained in:
本间白猫 authored and GitHub committed 2025-03-20 17:16:03 +08:00
1 parent 05fac6dd28
commit bdf82dcd18
1 file changed
+2 -2
+2 -2
View File
@@ -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)