This commit is contained in:
godcong 2019-09-18 13:53:31 +08:00
parent 5b1de2f51f
commit c80d054253

View File

@ -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,