From 30a9a2acf4e395f819ca2fa51e1b7fc3dcf8cf8a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 11 Apr 2019 21:47:34 -0700 Subject: [PATCH] keep temp addresses for 2 minutes Unfortunately, services like the DHT are slow enough that we can forget addresses before we successfully dial. --- interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.go b/interface.go index 4d16668..61b7af9 100644 --- a/interface.go +++ b/interface.go @@ -19,7 +19,7 @@ var ( AddressTTL = time.Hour // TempAddrTTL is the ttl used for a short lived address - TempAddrTTL = time.Second * 10 + TempAddrTTL = time.Minute * 2 // ProviderAddrTTL is the TTL of an address we've received from a provider. // This is also a temporary address, but lasts longer. After this expires,