Skip to content

Commit 1347370

Browse files
committed
prevent clients from sending ready_for_handshake
1 parent 3557c11 commit 1347370

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tailnet/tunnel.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ func (c ClientCoordinateeAuth) Authorize(req *proto.CoordinateRequest) error {
5252
}
5353
}
5454

55+
if rfh := req.GetReadyForHandshake(); rfh != nil {
56+
return xerrors.Errorf("clients may not send ready_for_handshake")
57+
}
58+
5559
return nil
5660
}
5761

0 commit comments

Comments
 (0)