diff --git a/protocols.go b/protocols.go index 75ee8cb..432ca06 100644 --- a/protocols.go +++ b/protocols.go @@ -32,6 +32,7 @@ const ( P_NOISE = 0x01c6 P_WS = 0x01DD P_WSS = 0x01DE // deprecated alias for /tls/ws + P_PLAINTEXTV2 = 0x706c61 ) var ( @@ -209,6 +210,11 @@ var ( Code: P_NOISE, VCode: CodeToVarint(P_NOISE), } + protoPlaintextV2 = Protocol{ + Name: "plaintextv2", + Code: P_PLAINTEXTV2, + VCode: CodeToVarint(P_PLAINTEXTV2), + } protoWS = Protocol{ Name: "ws", Code: P_WS, @@ -251,6 +257,7 @@ func init() { protoNOISE, protoWS, protoWSS, + protoPlaintextV2, } { if err := AddProtocol(p); err != nil { panic(err)