mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 19:31:06 +01:00
Fix relay close message handling
This commit is contained in:
parent
03df0878dc
commit
0329c12173
@ -43,6 +43,8 @@ func (m MsgType) String() string {
|
||||
return "transport"
|
||||
case MsgTypeClose:
|
||||
return "close"
|
||||
case MsgTypeHealthCheck:
|
||||
return "health check"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
@ -150,7 +152,7 @@ func UnmarshalHelloResponse(msg []byte) (string, error) {
|
||||
func MarshalCloseMsg() []byte {
|
||||
msg := make([]byte, 1)
|
||||
msg[0] = byte(MsgTypeClose)
|
||||
return healthCheckMsg
|
||||
return msg
|
||||
}
|
||||
|
||||
// Transport message
|
||||
|
Loading…
Reference in New Issue
Block a user