Skip to content

Commit c80d054

Browse files
committed
1 parent 5b1de2f commit c80d054

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

protocols.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const (
1111
P_IP6ZONE = 0x002A
1212
P_QUIC = 0x01CC
1313
P_SCTP = 0x0084
14+
P_CIRCUIT = 0x0122
1415
P_UDT = 0x012D
1516
P_UTP = 0x012E
1617
P_UNIX = 0x0190
@@ -81,6 +82,14 @@ var (
8182
Size: 16,
8283
Transcoder: TranscoderPort,
8384
}
85+
86+
protoCIRCUIT = Protocol{
87+
Code: P_CIRCUIT,
88+
Size: 0,
89+
Name: "p2p-circuit",
90+
VCode: CodeToVarint(P_CIRCUIT),
91+
}
92+
8493
protoONION2 = Protocol{
8594
Name: "onion",
8695
Code: P_ONION,
@@ -165,6 +174,7 @@ func init() {
165174
protoIP6,
166175
protoIP6ZONE,
167176
protoSCTP,
177+
protoCIRCUIT,
168178
protoONION2,
169179
protoONION3,
170180
protoGARLIC64,

0 commit comments

Comments
 (0)