Unverified Commit 38670044 authored by Marco Munizaga's avatar Marco Munizaga Committed by GitHub

Merge pull request #184 from multiformats/decimal-consts

use decimal numbers for multicodecs
parents 91391e21 d93ccc51
...@@ -3,41 +3,41 @@ package multiaddr ...@@ -3,41 +3,41 @@ package multiaddr
// You **MUST** register your multicodecs with // You **MUST** register your multicodecs with
// https://github.com/multiformats/multicodec before adding them here. // https://github.com/multiformats/multicodec before adding them here.
const ( const (
P_IP4 = 0x0004 P_IP4 = 4
P_TCP = 0x0006 P_TCP = 6
P_DNS = 0x0035 // 4 or 6 P_DNS = 53 // 4 or 6
P_DNS4 = 0x0036 P_DNS4 = 54
P_DNS6 = 0x0037 P_DNS6 = 55
P_DNSADDR = 0x0038 P_DNSADDR = 56
P_UDP = 0x0111 P_UDP = 273
P_DCCP = 0x0021 P_DCCP = 33
P_IP6 = 0x0029 P_IP6 = 41
P_IP6ZONE = 0x002A P_IP6ZONE = 42
P_IPCIDR = 0x002B P_IPCIDR = 43
P_QUIC = 0x01CC P_QUIC = 460
P_WEBTRANSPORT = 0x01D1 P_WEBTRANSPORT = 465
P_CERTHASH = 0x01D2 P_CERTHASH = 466
P_SCTP = 0x0084 P_SCTP = 132
P_CIRCUIT = 0x0122 P_CIRCUIT = 290
P_UDT = 0x012D P_UDT = 301
P_UTP = 0x012E P_UTP = 302
P_UNIX = 0x0190 P_UNIX = 400
P_P2P = 0x01A5 P_P2P = 421
P_IPFS = 0x01A5 // alias for backwards compatibility P_IPFS = P_P2P // alias for backwards compatibility
P_HTTP = 0x01E0 P_HTTP = 480
P_HTTPS = 0x01BB // deprecated alias for /tls/http P_HTTPS = 443 // deprecated alias for /tls/http
P_ONION = 0x01BC // also for backwards compatibility P_ONION = 444 // also for backwards compatibility
P_ONION3 = 0x01BD P_ONION3 = 445
P_GARLIC64 = 0x01BE P_GARLIC64 = 446
P_GARLIC32 = 0x01BF P_GARLIC32 = 447
P_P2P_WEBRTC_DIRECT = 0x0114 P_P2P_WEBRTC_DIRECT = 276
P_TLS = 0x01c0 P_TLS = 448
P_SNI = 0x01c1 P_SNI = 449
P_NOISE = 0x01c6 P_NOISE = 454
P_WS = 0x01DD P_WS = 477
P_WSS = 0x01DE // deprecated alias for /tls/ws P_WSS = 478 // deprecated alias for /tls/ws
P_PLAINTEXTV2 = 0x706c61 P_PLAINTEXTV2 = 7367777
P_WEBRTC = 0x118 P_WEBRTC = 280
) )
var ( var (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment