Add hello version "2.0" that authenticates connections using a JWT.

This commit is contained in:
Joachim Bauch
2022-08-03 16:33:45 +02:00
parent 88e4c5f2c3
commit 156bc360ff
11 changed files with 693 additions and 64 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ type HelloProxyClientMessage struct {
}
func (m *HelloProxyClientMessage) CheckValid() error {
if m.Version != HelloVersion {
if m.Version != HelloVersionV1 {
return fmt.Errorf("unsupported hello version: %s", m.Version)
}
if m.ResumeId == "" {