Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion model/protos.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func GetClientControlNextProto(conn *quic.Conn) ClientControlNextProto {
var (
ClientControlUnknown = ClientControlNextProto{}
ClientControlV03 = ClientControlNextProto{"connet-client/0.3"} // 0.13.0
ClientControlLatest = ClientControlV03
// Update GetClientControlNextProto when adding a new one
)

Expand All @@ -35,7 +36,8 @@ func (v ConnectClientNextProto) String() string {
}

var (
ConnectClientV01 = ConnectClientNextProto{"connet-peer/0.1"} // 0.7.0
ConnectClientV01 = ConnectClientNextProto{"connet-peer/0.1"} // 0.7.0
ConnectClientLatest = ConnectClientV01
)

// ConnectRelayNextProto describes TLS NextProtos for clients connecting to relays
Expand All @@ -58,6 +60,8 @@ func GetConnectRelayNextProto(conn *quic.Conn) ConnectRelayNextProto {
var (
ConnectRelayUnknown = ConnectRelayNextProto{}
ConnectRelayV02 = ConnectRelayNextProto{"connet-peer-relay/0.2"} // 0.13.0
ConnectRelayLatest = ConnectRelayV02
// Update GetConnectRelayNextProto when adding a new one
)

// RelayControlNextProto describes TLS NextProtos for relays connecting to control servers
Expand All @@ -80,5 +84,6 @@ func GetRelayControlNextProto(conn *quic.Conn) RelayControlNextProto {
var (
RelayControlUnknown = RelayControlNextProto{}
RelayControlV03 = RelayControlNextProto{"connet-relay/0.3"} // 0.13.0
RelayControlLatest = RelayControlV03
// Update GetRelayControlNextProto when adding a new one
)