@@ -38,61 +38,21 @@ describe('multiaddr-to-uri', () => {
38
38
[ '/ip4/1.2.3.4/tcp/1234/tls/sni/ipfs.io/ws' , 'wss://ipfs.io' ] ,
39
39
[ '/ip4/1.2.3.4/tcp/3456/wss' , 'wss://1.2.3.4:3456' ] ,
40
40
[ '/ip6/::/tcp/0/wss' , 'wss://[::]:0' ] ,
41
- [
42
- '/ip4/1.2.3.4/tcp/3456/ws/p2p-webrtc-star/ipfs/QmWo6sLpfuhLnPNF1d2X6s9PXC5NvsRbC69uvHAJhZW9bk' ,
43
- 'ws://1.2.3.4:3456/p2p-webrtc-star/p2p/QmWo6sLpfuhLnPNF1d2X6s9PXC5NvsRbC69uvHAJhZW9bk'
44
- ] ,
45
- [
46
- '/dnsaddr/ipfs.io/ws/p2p-webrtc-star/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
47
- 'ws://ipfs.io/p2p-webrtc-star/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
48
- ] ,
49
- [
50
- '/dnsaddr/ipfs.io/wss/p2p-webrtc-star/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
51
- 'wss://ipfs.io/p2p-webrtc-star/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
52
- ] ,
53
- [
54
- '/ip6/::/tcp/0/ws/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo5' ,
55
- 'ws://[::]:0/p2p-webrtc-star/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo5'
56
- ] ,
57
- [
58
- '/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star/ipfs/QmTysQQiTGMdfRsDQp516oZ9bR3FiSCDnicUnqny2q1d79' ,
59
- 'wss://wrtc-star.discovery.libp2p.io:443/p2p-webrtc-star/p2p/QmTysQQiTGMdfRsDQp516oZ9bR3FiSCDnicUnqny2q1d79'
60
- ] ,
61
- [ '/ip4/1.2.3.4/tcp/3456/http/p2p-webrtc-direct' , 'http://1.2.3.4:3456/p2p-webrtc-direct' ] ,
62
- [ '/ip6/::/tcp/0/http/p2p-webrtc-direct' , 'http://[::]:0/p2p-webrtc-direct' ] ,
63
- [ '/ip4/1.2.3.4/tcp/3456/ws/p2p-websocket-star' , 'ws://1.2.3.4:3456/p2p-websocket-star' ] ,
64
- [ '/ip6/::/tcp/0/ws/p2p-websocket-star' , 'ws://[::]:0/p2p-websocket-star' ] ,
65
- [
66
- '/dnsaddr/localhost/ws/p2p-websocket-star/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
67
- 'ws://localhost/p2p-websocket-star/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
68
- ] ,
69
- [
70
- '/ip4/1.2.3.4/tcp/3456/ws/p2p-websocket-star/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
71
- 'ws://1.2.3.4:3456/p2p-websocket-star/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
72
- ] ,
73
- [
74
- '/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star/ipfs/QmP3vadpN9dqZ7j6KtmwP5Y4prg7XqdS7ixgZMWtXxBAbp' ,
75
- 'wss://ws-star.discovery.libp2p.io:443/p2p-websocket-star/p2p/QmP3vadpN9dqZ7j6KtmwP5Y4prg7XqdS7ixgZMWtXxBAbp'
76
- ] ,
77
41
[
78
42
'/ip4/127.0.0.1/tcp/20008/ws/ipfs/QmUjNmr8TgJCn1Ao7DvMy4cjoZU15b9bwSCBLE3vwXiwgj' ,
79
- 'ws://127.0.0.1:20008/p2p/QmUjNmr8TgJCn1Ao7DvMy4cjoZU15b9bwSCBLE3vwXiwgj'
80
- ] ,
81
- [
82
- '/ip4/1.2.3.4/tcp/3456/ws/p2p-webrtc-star/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
83
- 'ws://1.2.3.4:3456/p2p-webrtc-star/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK'
43
+ 'ws://127.0.0.1:20008'
84
44
] ,
85
45
[
86
46
'/ip4/1.2.3.4/tcp/3456/ipfs/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
87
- 'tcp://1.2.3.4:3456/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK '
47
+ 'tcp://1.2.3.4:3456'
88
48
] ,
89
49
[
90
50
'/ip4/1.2.3.4/tcp/3456/http/http-path/foo%2fbar' ,
91
51
'http://1.2.3.4:3456/foo/bar'
92
52
] ,
93
53
[
94
54
'/ip4/1.2.3.4/tcp/3456/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK' ,
95
- 'tcp://1.2.3.4:3456/p2p/QmcNwyju7SWoizsAuf6kjaaRoxe762ovsT3hz6qt3xxcsK '
55
+ 'tcp://1.2.3.4:3456'
96
56
]
97
57
]
98
58
0 commit comments