Skip to content

Commit d0faf10

Browse files
RichardLittdaviddias
authored andcommitted
Adjust onion address size to 96 (#26)
The onion size is 96: the address 80 and the port number 16 combined. This is what it says in [multiformats/multiaddr's list](https://github.com/multiformats/multiaddr/blob/master/protocols.csv#L13), and [here](multiformats/go-multiaddr#21 (comment)) See multiformats/go-multiaddr@e32e9cd
1 parent e662555 commit d0faf10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/protocols.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ hex-code, dec-code, size, name
1111
0x01E0, 480, 0, http
1212
0x01BB, 443, 0, https
1313
0x01DD, 477, 0, ws
14-
0x01BC, 444, 10, onion
15-
0x0113, 275, 0, libp2p-webrtc-star
14+
0x01BC, 444, 96, onion
15+
0x0113, 275, 0, libp2p-webrtc-star

0 commit comments

Comments
 (0)