Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
d93ccc51
Commit
d93ccc51
authored
Sep 08, 2022
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use decimal numbers for multicodecs
parent
450ddd92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
protocols.go
protocols.go
+35
-35
No files found.
protocols.go
View file @
d93ccc51
...
...
@@ -3,41 +3,41 @@ package multiaddr
// You **MUST** register your multicodecs with
// https://github.com/multiformats/multicodec before adding them here.
const
(
P_IP4
=
0x000
4
P_TCP
=
0x000
6
P_DNS
=
0x003
5
// 4 or 6
P_DNS4
=
0x0036
P_DNS6
=
0x0037
P_DNSADDR
=
0x0038
P_UDP
=
0x0111
P_DCCP
=
0x0021
P_IP6
=
0x0029
P_IP6ZONE
=
0x002A
P_IPCIDR
=
0x002B
P_QUIC
=
0x01CC
P_WEBTRANSPORT
=
0x01D1
P_CERTHASH
=
0x01D2
P_SCTP
=
0x0084
P_CIRCUIT
=
0x0122
P_UDT
=
0x012D
P_UTP
=
0x012E
P_UNIX
=
0
x019
0
P_P2P
=
0x01A5
P_IPFS
=
0x01A5
// alias for backwards compatibility
P_HTTP
=
0x01E
0
P_HTTPS
=
0x01BB
// deprecated alias for /tls/http
P_ONION
=
0x01BC
// also for backwards compatibility
P_ONION3
=
0x01BD
P_GARLIC64
=
0x01BE
P_GARLIC32
=
0x01BF
P_P2P_WEBRTC_DIRECT
=
0x0114
P_TLS
=
0x01c0
P_SNI
=
0x01c1
P_NOISE
=
0x01c6
P_WS
=
0x01DD
P_WSS
=
0x01DE
// deprecated alias for /tls/ws
P_PLAINTEXTV2
=
0x706c61
P_WEBRTC
=
0x118
P_IP4
=
4
P_TCP
=
6
P_DNS
=
5
3
// 4 or 6
P_DNS4
=
54
P_DNS6
=
55
P_DNSADDR
=
56
P_UDP
=
273
P_DCCP
=
33
P_IP6
=
41
P_IP6ZONE
=
42
P_IPCIDR
=
43
P_QUIC
=
460
P_WEBTRANSPORT
=
465
P_CERTHASH
=
466
P_SCTP
=
132
P_CIRCUIT
=
290
P_UDT
=
301
P_UTP
=
302
P_UNIX
=
4
00
P_P2P
=
421
P_IPFS
=
P_P2P
// alias for backwards compatibility
P_HTTP
=
48
0
P_HTTPS
=
443
// deprecated alias for /tls/http
P_ONION
=
444
// also for backwards compatibility
P_ONION3
=
445
P_GARLIC64
=
446
P_GARLIC32
=
447
P_P2P_WEBRTC_DIRECT
=
276
P_TLS
=
448
P_SNI
=
449
P_NOISE
=
454
P_WS
=
477
P_WSS
=
478
// deprecated alias for /tls/ws
P_PLAINTEXTV2
=
7367777
P_WEBRTC
=
280
)
var
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment