mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
修改握手时的签名算法
This commit is contained in:
@@ -91,7 +91,7 @@ func (h *Handler) readHandshake(c *network.Conn) (string, error) {
|
||||
if msg.GetXType() != network.Msg_handshake {
|
||||
return "", errNotHandshake
|
||||
}
|
||||
n := bytes.Compare(msg.GetHsp().GetEnc(), h.cfg.Enc[:])
|
||||
n := bytes.Compare(msg.GetHsp().GetEnc(), h.cfg.Hasher.Hash())
|
||||
if n != 0 {
|
||||
return "", errInvalidHandshake
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user