refactor: remove redundant HTTP client instantiation in getRoute method

This commit is contained in:
Marc Schäfer
2026-04-04 01:44:59 +02:00
committed by GitHub
parent c3ed355127
commit 58415dee7e

View File

@@ -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 {