mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-30 21:15:18 +00:00
feat(service): warn when a proxy exit is outside GEOFENCE
This commit is contained in:
@@ -108,7 +108,8 @@ Declared at class level to configure framework behaviour:
|
||||
|
||||
`GEOFENCE` drives an automatic proxy: on startup, if you did not pass an
|
||||
explicit `--proxy`, the base class does a live IP check and, if your region is
|
||||
blocked, fetches a proxy to `GEOFENCE[0]` from your configured proxy providers.
|
||||
blocked, fetches a proxy to `GEOFENCE[0]` from your configured proxy providers. A
|
||||
proxy exit outside `GEOFENCE` logs a warning and the run continues.
|
||||
|
||||
`GEOBLOCK` is the negative form: the service works everywhere except the listed
|
||||
regions. With no `GEOFENCE` to name a main region, a `GEOBLOCK` hit stops the run
|
||||
@@ -117,7 +118,7 @@ with a "not available in your region" error; pass `--proxy` yourself.
|
||||
```python
|
||||
class EXAMPLE(Service):
|
||||
ALIASES = ("EX", "DOMAIN")
|
||||
GEOFENCE = ("US", "UK")
|
||||
GEOFENCE = ("US", "GB")
|
||||
VAULT_TAG = "DIFFERENT_NAME"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user