Browse Source

use TempAddrTTL for relay addrs

pull/449/head
vyzo 6 years ago
parent
commit
1536433f6b
  1. 2
      p2p/host/routed/routed.go

2
p2p/host/routed/routed.go

@ -102,7 +102,7 @@ func (rh *RoutedHost) Connect(ctx context.Context, pi pstore.PeerInfo) error {
continue
}
rh.Peerstore().AddAddrs(relayID, relayAddrs, pstore.AddressTTL)
rh.Peerstore().AddAddrs(relayID, relayAddrs, pstore.TempAddrTTL)
}
// if we're here, we got some addrs. let's use our wrapped host to connect.

Loading…
Cancel
Save