From 3e48679dd4c94215461dea61b4a32b1271fe577a Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 20 Sep 2021 08:11:42 +0100 Subject: [PATCH] add p2p-circuit-inner --- protocols.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/protocols.go b/protocols.go index 75ee8cb..6fc3def 100644 --- a/protocols.go +++ b/protocols.go @@ -16,6 +16,7 @@ const ( P_QUIC = 0x01CC P_SCTP = 0x0084 P_CIRCUIT = 0x0122 + P_CIRCUIT_INNER = 0x0123 P_UDT = 0x012D P_UTP = 0x012E P_UNIX = 0x0190 @@ -118,14 +119,16 @@ var ( Size: 16, Transcoder: TranscoderPort, } - protoCIRCUIT = Protocol{ Code: P_CIRCUIT, - Size: 0, Name: "p2p-circuit", VCode: CodeToVarint(P_CIRCUIT), } - + protoCIRCUITINNER = Protocol{ + Code: P_CIRCUIT_INNER, + Name: "p2p-circuit-inner", + VCode: CodeToVarint(P_CIRCUIT_INNER), + } protoONION2 = Protocol{ Name: "onion", Code: P_ONION, @@ -235,6 +238,7 @@ func init() { protoIP6ZONE, protoSCTP, protoCIRCUIT, + protoCIRCUITINNER, protoONION2, protoONION3, protoGARLIC64,