feat(Basic): Allow single string URIs for countries

This commit is contained in:
rlaphoenix
2024-04-01 17:47:51 +01:00
parent 03b8945273
commit b36befb296
2 changed files with 9 additions and 8 deletions

View File

@@ -29,7 +29,10 @@ class Basic(Proxy):
if not servers:
return
proxy = random.choice(servers)
if isinstance(servers, str):
proxy = servers
else:
proxy = random.choice(servers)
proxy = prepend_scheme_if_needed(proxy, "http")
parsed_proxy = parse_url(proxy)