From 56badd75351be4fc1d1662db90886285a01a4912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Tue, 10 Sep 2024 16:34:11 +0200 Subject: [PATCH] Fix message type --- relay/messages/message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/messages/message.go b/relay/messages/message.go index 04ed1d09b..17b307b43 100644 --- a/relay/messages/message.go +++ b/relay/messages/message.go @@ -199,7 +199,7 @@ func MarshalAuthMsg(peerID []byte, authPayload []byte) ([]byte, error) { msg := make([]byte, SizeOfProtoHeader+sizeOfMagicByte, SizeOfProtoHeader+headerSizeAuth+len(authPayload)) msg[0] = byte(CurrentProtocolVersion) - msg[1] = byte(MsgTypeHello) + msg[1] = byte(MsgTypeAuth) copy(msg[SizeOfProtoHeader:SizeOfProtoHeader+sizeOfMagicByte], magicHeader) @@ -230,7 +230,7 @@ func MarshalAuthResponse(address string) ([]byte, error) { msg := make([]byte, SizeOfProtoHeader, SizeOfProtoHeader+headerSizeAuthResp+len(ab)) msg[0] = byte(CurrentProtocolVersion) - msg[1] = byte(MsgTypeHelloResponse) + msg[1] = byte(MsgTypeAuthResponse) msg = append(msg, ab...)