diff --git a/p2p/transport/websocket/addrs.go b/p2p/transport/websocket/addrs.go index e5dbc46e4..e789399da 100644 --- a/p2p/transport/websocket/addrs.go +++ b/p2p/transport/websocket/addrs.go @@ -6,7 +6,7 @@ import ( "net/url" ma "github.com/multiformats/go-multiaddr" - manet "github.com/multiformats/go-multiaddr-net" + manet "github.com/multiformats/go-multiaddr/net" ) // Addr is an implementation of net.Addr for WebSocket. diff --git a/p2p/transport/websocket/listener.go b/p2p/transport/websocket/listener.go index 47fb8e712..1af9ed428 100644 --- a/p2p/transport/websocket/listener.go +++ b/p2p/transport/websocket/listener.go @@ -8,7 +8,7 @@ import ( "net/http" ma "github.com/multiformats/go-multiaddr" - manet "github.com/multiformats/go-multiaddr-net" + manet "github.com/multiformats/go-multiaddr/net" ) type listener struct { diff --git a/p2p/transport/websocket/websocket.go b/p2p/transport/websocket/websocket.go index ddd414109..5e7dc9989 100644 --- a/p2p/transport/websocket/websocket.go +++ b/p2p/transport/websocket/websocket.go @@ -9,7 +9,7 @@ import ( tptu "github.com/libp2p/go-libp2p-transport-upgrader" ma "github.com/multiformats/go-multiaddr" mafmt "github.com/multiformats/go-multiaddr-fmt" - manet "github.com/multiformats/go-multiaddr-net" + manet "github.com/multiformats/go-multiaddr/net" ) // WsProtocol is the multiaddr protocol definition for this transport. diff --git a/p2p/transport/websocket/websocket_browser.go b/p2p/transport/websocket/websocket_browser.go index 258a82917..c62a97d04 100644 --- a/p2p/transport/websocket/websocket_browser.go +++ b/p2p/transport/websocket/websocket_browser.go @@ -9,7 +9,7 @@ import ( "github.com/libp2p/go-libp2p-core/transport" ma "github.com/multiformats/go-multiaddr" - manet "github.com/multiformats/go-multiaddr-net" + manet "github.com/multiformats/go-multiaddr/net" ) func (t *WebsocketTransport) maDial(ctx context.Context, raddr ma.Multiaddr) (manet.Conn, error) { @@ -29,7 +29,7 @@ func (t *WebsocketTransport) maDial(ctx context.Context, raddr ma.Multiaddr) (ma conn.Close() return nil, err } - + return mnc, nil } diff --git a/p2p/transport/websocket/websocket_native.go b/p2p/transport/websocket/websocket_native.go index 86b872c02..991f66e7b 100644 --- a/p2p/transport/websocket/websocket_native.go +++ b/p2p/transport/websocket/websocket_native.go @@ -11,7 +11,7 @@ import ( ws "github.com/gorilla/websocket" "github.com/libp2p/go-libp2p-core/transport" ma "github.com/multiformats/go-multiaddr" - manet "github.com/multiformats/go-multiaddr-net" + manet "github.com/multiformats/go-multiaddr/net" ) // Default gorilla upgrader