From 6c9b601008b5afdb6ac245b4d3be46bba565a657 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Mon, 11 Jul 2022 17:00:30 +0200 Subject: [PATCH] possible fix for #12 --- internal/requests_turn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/requests_turn.go b/internal/requests_turn.go index 9eaf49ce..a51c38dc 100644 --- a/internal/requests_turn.go +++ b/internal/requests_turn.go @@ -26,7 +26,7 @@ func AllocateRequest(targetProtocol RequestedTransport, allocateProtcol Allocate if allocateProtcol != AllocateProtocolIgnore { s.Attributes = append(s.Attributes, Attribute{ Type: AttrRequestedAddressFamily, - Value: []byte{byte(allocateProtcol)}, + Value: []byte{byte(allocateProtcol), 0x00, 0x00, 0x00, 0x00}, }) } @@ -64,7 +64,7 @@ func AllocateRequestAuth(username, password, nonce, realm string, targetProtocol if allocateProtcol != AllocateProtocolIgnore { s.Attributes = append(s.Attributes, Attribute{ Type: AttrRequestedAddressFamily, - Value: []byte{byte(allocateProtcol)}, + Value: []byte{byte(allocateProtcol), 0x00, 0x00, 0x00, 0x00}, }) }