Skip to content

Commit

Permalink
possible fix for #12
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Jul 11, 2022
1 parent 5ee0153 commit 6c9b601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/requests_turn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
})
}

Expand Down Expand Up @@ -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},
})
}

Expand Down

0 comments on commit 6c9b601

Please sign in to comment.