Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Sep 10, 2019
1 parent 54d16aa commit c51839d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions server/api/redirector.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,13 @@ type customReverseProxies struct {
}

func newCustomReverseProxies(urls []url.URL, cfg *tls.Config) *customReverseProxies {
if cfg != nil {
dialClient = &http.Client{
Transport: &http.Transport{
TLSClientConfig: cfg,
DisableKeepAlives: true,
},
}
dialClient = &http.Client{
Transport: &http.Transport{
TLSClientConfig: cfg,
DisableKeepAlives: true,
},
}

p := &customReverseProxies{
client: dialClient,
}
Expand Down

0 comments on commit c51839d

Please sign in to comment.