mirror of
https://github.com/fosrl/gerbil.git
synced 2026-05-12 03:09:57 +00:00
refactor: remove redundant HTTP client instantiation in getRoute method
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user