refactor: add setter for handshake
This commit is contained in:
parent
33e2ef0d61
commit
29cff7f368
|
@ -22,6 +22,10 @@ type HandshakeOpen struct {
|
||||||
base.IncomingMessageHandler
|
base.IncomingMessageHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (h *HandshakeOpen) SetHandshake(handshake []byte) {
|
||||||
|
h.handshake = handshake
|
||||||
|
}
|
||||||
|
|
||||||
func (h HandshakeOpen) Challenge() []byte {
|
func (h HandshakeOpen) Challenge() []byte {
|
||||||
return h.challenge
|
return h.challenge
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue