From 3e859f94dc7895f5027ea73816fef2a44af8d713 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sat, 21 Nov 2026 10:02:25 +0000 Subject: [PATCH] crowdsec_range_bouncer: User-Agent carries a version, the LAPI warned about a bad user agent on every pull --- crowdsec_range_bouncer/templates/crowdsec-range-bouncer.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdsec_range_bouncer/templates/crowdsec-range-bouncer.py.j2 b/crowdsec_range_bouncer/templates/crowdsec-range-bouncer.py.j2 index f0fbf3b..26935f1 100644 --- a/crowdsec_range_bouncer/templates/crowdsec-range-bouncer.py.j2 +++ b/crowdsec_range_bouncer/templates/crowdsec-range-bouncer.py.j2 @@ -28,7 +28,7 @@ def fetch_ranges(lapi_url, api_key): """Return the networks of all ban decisions with scope Range.""" request = urllib.request.Request( lapi_url.rstrip("/") + "/v1/decisions?scopes=range", - headers={"X-Api-Key": api_key, "User-Agent": "crowdsec-range-bouncer"}, + headers={"X-Api-Key": api_key, "User-Agent": "crowdsec-range-bouncer/v1.0.0"}, ) with urllib.request.urlopen(request, timeout=20) as response: decisions = json.load(response)