mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-03-17 16:47:29 +00:00
fix(proxy): remove regional restrictions from WindscribeVPN
OpenVPN credentials now work reliably on all regions, not just US, AU, and NZ. Remove the supported_regions check that was blocking other country codes.
This commit is contained in:
@@ -42,19 +42,8 @@ class WindscribeVPN(Proxy):
|
|||||||
return f"{countries} Countr{['ies', 'y'][countries == 1]} ({servers} Server{['s', ''][servers == 1]})"
|
return f"{countries} Countr{['ies', 'y'][countries == 1]} ({servers} Server{['s', ''][servers == 1]})"
|
||||||
|
|
||||||
def get_proxy(self, query: str) -> Optional[str]:
|
def get_proxy(self, query: str) -> Optional[str]:
|
||||||
"""
|
"""Get an HTTPS proxy URI for a WindscribeVPN server."""
|
||||||
Get an HTTPS proxy URI for a WindscribeVPN server.
|
|
||||||
|
|
||||||
Note: Windscribe's static OpenVPN credentials work reliably on US, AU, and NZ servers.
|
|
||||||
"""
|
|
||||||
query = query.lower()
|
query = query.lower()
|
||||||
supported_regions = {"us", "au", "nz"}
|
|
||||||
|
|
||||||
if query not in supported_regions and query not in self.server_map:
|
|
||||||
raise ValueError(
|
|
||||||
f"Windscribe proxy does not currently support the '{query.upper()}' region. "
|
|
||||||
f"Supported regions with reliable credentials: {', '.join(sorted(supported_regions))}. "
|
|
||||||
)
|
|
||||||
|
|
||||||
if query in self.server_map:
|
if query in self.server_map:
|
||||||
hostname = self.server_map[query]
|
hostname = self.server_map[query]
|
||||||
|
|||||||
Reference in New Issue
Block a user