feat(service): warn when a proxy exit is outside GEOFENCE

This commit is contained in:
imSp4rky
2026-11-30 09:48:54 -07:00
parent f0163439d4
commit ac7d10abb6
7 changed files with 95 additions and 16 deletions
+3 -2
View File
@@ -231,9 +231,10 @@ proxy. The service stops with `Proxy check failed` in two cases:
unshackle tries each geolocation API in turn, and a 429 moves on to the next one. If at
least one API answers through the proxy but none of them gives an IP, the proxy passes
the check without the IP comparison. unshackle does not compare the exit country with the region you asked for,
because geolocation data can be out of date.
because geolocation data can be out of date. When the service lists the regions it supports and
the proxy exit is in none of them, unshackle logs a warning and continues.
Over the REST API, the server returns this failure to the client as `INVALID_PROXY`.
Over the REST API, the server returns a `Proxy check failed` error to the client as `INVALID_PROXY`.
### System proxy and environment variables