mirror of
https://github.com/waku-org/go-multiaddr.git
synced 2025-02-23 03:28:12 +00:00
move protocol definitions (https://github.com/libp2p/go-libp2p-circuit/blob/master/transport.go#L13-L24)
This commit is contained in:
parent
5b1de2f51f
commit
c80d054253
10
protocols.go
10
protocols.go
@ -11,6 +11,7 @@ const (
|
|||||||
P_IP6ZONE = 0x002A
|
P_IP6ZONE = 0x002A
|
||||||
P_QUIC = 0x01CC
|
P_QUIC = 0x01CC
|
||||||
P_SCTP = 0x0084
|
P_SCTP = 0x0084
|
||||||
|
P_CIRCUIT = 0x0122
|
||||||
P_UDT = 0x012D
|
P_UDT = 0x012D
|
||||||
P_UTP = 0x012E
|
P_UTP = 0x012E
|
||||||
P_UNIX = 0x0190
|
P_UNIX = 0x0190
|
||||||
@ -81,6 +82,14 @@ var (
|
|||||||
Size: 16,
|
Size: 16,
|
||||||
Transcoder: TranscoderPort,
|
Transcoder: TranscoderPort,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protoCIRCUIT = Protocol{
|
||||||
|
Code: P_CIRCUIT,
|
||||||
|
Size: 0,
|
||||||
|
Name: "p2p-circuit",
|
||||||
|
VCode: CodeToVarint(P_CIRCUIT),
|
||||||
|
}
|
||||||
|
|
||||||
protoONION2 = Protocol{
|
protoONION2 = Protocol{
|
||||||
Name: "onion",
|
Name: "onion",
|
||||||
Code: P_ONION,
|
Code: P_ONION,
|
||||||
@ -165,6 +174,7 @@ func init() {
|
|||||||
protoIP6,
|
protoIP6,
|
||||||
protoIP6ZONE,
|
protoIP6ZONE,
|
||||||
protoSCTP,
|
protoSCTP,
|
||||||
|
protoCIRCUIT,
|
||||||
protoONION2,
|
protoONION2,
|
||||||
protoONION3,
|
protoONION3,
|
||||||
protoGARLIC64,
|
protoGARLIC64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user