Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add p2p-circuit-inner #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions protocols.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -235,6 +238,7 @@ func init() {
protoIP6ZONE,
protoSCTP,
protoCIRCUIT,
protoCIRCUITINNER,
protoONION2,
protoONION3,
protoGARLIC64,
Expand Down