9
9
"sync"
10
10
"time"
11
11
12
- autonat "github.com/libp2p/go-libp2p/p2p/host/autonat"
12
+ "github.com/libp2p/go-libp2p/p2p/host/autonat"
13
13
"github.com/libp2p/go-libp2p/p2p/host/pstoremanager"
14
14
"github.com/libp2p/go-libp2p/p2p/host/relaysvc"
15
15
relayv2 "github.com/libp2p/go-libp2p/p2p/protocol/circuitv2/relay"
@@ -27,7 +27,6 @@ import (
27
27
"github.com/libp2p/go-libp2p-core/protocol"
28
28
"github.com/libp2p/go-libp2p-core/record"
29
29
30
- addrutil "github.com/libp2p/go-addr-util"
31
30
"github.com/libp2p/go-eventbus"
32
31
inat "github.com/libp2p/go-libp2p-nat"
33
32
"github.com/libp2p/go-netroute"
@@ -826,7 +825,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr {
826
825
// Iterate over all _unresolved_ listen addresses, resolving our primary
827
826
// interface only to avoid advertising too many addresses.
828
827
var finalAddrs []ma.Multiaddr
829
- if resolved , err := addrutil .ResolveUnspecifiedAddresses (listenAddrs , filteredIfaceAddrs ); err != nil {
828
+ if resolved , err := manet .ResolveUnspecifiedAddresses (listenAddrs , filteredIfaceAddrs ); err != nil {
830
829
// This can happen if we're listening on no addrs, or listening
831
830
// on IPv6 addrs, but only have IPv4 interface addrs.
832
831
log .Debugw ("failed to resolve listen addrs" , "error" , err )
@@ -959,7 +958,7 @@ func (h *BasicHost) AllAddrs() []ma.Multiaddr {
959
958
// No.
960
959
// in case the router gives us a wrong address or we're behind a double-NAT.
961
960
// also add observed addresses
962
- resolved , err := addrutil .ResolveUnspecifiedAddress (listen , allIfaceAddrs )
961
+ resolved , err := manet .ResolveUnspecifiedAddress (listen , allIfaceAddrs )
963
962
if err != nil {
964
963
// This can happen if we try to resolve /ip6/::/...
965
964
// without any IPv6 interface addresses.
0 commit comments