From 58415dee7e6979b3bff4a1cc422f81e52c54b7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=A4fer?= Date: Sat, 4 Apr 2026 01:44:59 +0200 Subject: [PATCH] refactor: remove redundant HTTP client instantiation in getRoute method --- proxy/proxy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index da93c42..71cf4ed 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -717,7 +717,6 @@ func (p *SNIProxy) getRoute(hostname, clientAddr string) (*RouteRecord, error) { // Make HTTP request apiStart := time.Now() - client := &http.Client{Timeout: 5 * time.Second} // Make HTTP request using reusable client resp, err := p.httpClient.Do(req) if err != nil {