Update comment

This commit is contained in:
Frank Denis 2019-11-02 01:52:51 +01:00
parent a84a789a8a
commit 63ed3b4fef
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func ParseIP(ipStr string) net.IP {
}
// If ttl < 0, never expire
// Otherwise, ttl is set to max(ttl, xTransport.timeout)
// Otherwise, ttl is set to max(ttl, SystemResolverTTL)
func (xTransport *XTransport) saveCachedIP(host string, ip net.IP, ttl time.Duration) {
item := &CachedIPItem{ip: ip, expiration: nil}
if ttl >= 0 {