fix(proxies): Fixes WindscribeVPN server authentication

This commit is contained in:
Aerglonus
2026-01-27 00:48:03 -06:00
parent b72a5dd84a
commit a96bc9e4a6
4 changed files with 128 additions and 64 deletions

View File

@@ -89,7 +89,9 @@ class Service(metaclass=ABCMeta):
proxy = mapped_proxy_uri
self.log.info(f"Using mapped proxy from {proxy_provider.__class__.__name__}: {proxy}")
else:
self.log.warning(f"Failed to get proxy for mapped value '{mapped_value}', using default")
self.log.warning(
f"Failed to get proxy for mapped value '{mapped_value}', using default"
)
else:
self.log.warning(f"Proxy provider '{proxy_provider_name}' not found, using default proxy")
else:
@@ -140,11 +142,11 @@ class Service(metaclass=ABCMeta):
}
)
# Always verify proxy IP - proxies can change exit nodes
try:
proxy_ip_info = get_ip_info(self.session)
self.current_region = proxy_ip_info.get("country", "").lower() if proxy_ip_info else None
except Exception as e:
self.log.warning(f"Failed to verify proxy IP: {e}")
proxy_ip_info = get_ip_info(self.session)
if proxy_ip_info:
self.current_region = proxy_ip_info.get("country", "").lower()
else:
self.log.warning("Failed to verify proxy IP, falling back to proxy config for region")
# Fallback to extracting region from proxy config
self.current_region = get_region_from_proxy(proxy)
else: