fix(go): repair migration wire contracts and runtime lifecycle; document incomplete port
This commit is contained in:
1 parent
e43a310617
commit
32e47014b5
35 files changed
+16826
-438
No files matched your search
@@ -20,6 +20,9 @@ func HandleHandshake(conn net.Conn) (*chacha8.UxChaCha8, *chacha8.UxChaCha8, err
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
if frame.Mode != 0x01 {
|
||||
return nil, nil, errors.New("invalid handshake frame mode")
|
||||
}
|
||||
if len(frame.Payload) < 20 {
|
||||
return nil, nil, errors.New("client handshake too short")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user