diff --git a/tcpdialer.go b/tcpdialer.go index 0023cf60aa..495b06d252 100644 --- a/tcpdialer.go +++ b/tcpdialer.go @@ -358,7 +358,7 @@ type tcpAddrEntry struct { // DefaultDNSCacheDuration is the duration for caching resolved TCP addresses // by Dial* functions. -const DefaultDNSCacheDuration = time.Minute +var DefaultDNSCacheDuration = time.Minute func (d *TCPDialer) tcpAddrsClean() { expireDuration := 2 * DefaultDNSCacheDuration