Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
apply suggestion
  • Loading branch information
jiuker committed Jul 9, 2024
1 parent e63d164 commit 2ba450e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ type roundTripperWrapper struct {
func (rtw *roundTripperWrapper) renew() {
rtw.rwLocker.Lock()
defer rtw.rwLocker.Unlock()
dnsCache.Refresh()
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: dialContextWithDNSCache(dnsCache, newProxyDialContext(10*time.Second)),
Expand Down

0 comments on commit 2ba450e

Please sign in to comment.