From 97970295425ea1c364b2083328fa25bb4353d44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andri=20=C3=93skarsson?= Date: Thu, 26 Feb 2026 21:42:42 +0100 Subject: [PATCH] Reduce blocklist download timeout from 30s to 5s --- proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.go b/proxy.go index 369da61..57c55ec 100644 --- a/proxy.go +++ b/proxy.go @@ -259,7 +259,7 @@ func (p *proxyHandler) loadBlocklistURL(rs *blocklist.RuleSet, url string) error // downloadBlocklist fetches a blocklist URL and returns its raw content. func downloadBlocklist(url string) ([]byte, error) { - client := &http.Client{Timeout: 30 * time.Second} + client := &http.Client{Timeout: 5 * time.Second} resp, err := client.Get(url) if err != nil { return nil, fmt.Errorf("fetch %s: %w", url, err) -- 2.51.2