From 91b8f90c7c2bebf686b1411823e6e8178740dc65 Mon Sep 17 00:00:00 2001 From: Stephan Rotolante Date: Tue, 29 Jul 2025 23:20:55 -0500 Subject: [PATCH] fix: bad udp payload on esp32 --- src/stun.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stun.c b/src/stun.c index 860279111..d38724109 100644 --- a/src/stun.c +++ b/src/stun.c @@ -51,9 +51,9 @@ void stun_msg_create(StunMessage* msg, uint16_t type) { header->type = htons(type); header->length = 0; header->magic_cookie = htonl(MAGIC_COOKIE); - header->transaction_id[0] = htonl(0x12345678); - header->transaction_id[1] = htonl(0x90abcdef); - header->transaction_id[2] = htonl(0x12345678); + header->transaction_id[0] = htonl(CRC32_TABLE[1]); + header->transaction_id[1] = htonl(CRC32_TABLE[2]); + header->transaction_id[2] = htonl(CRC32_TABLE[3]); msg->size = sizeof(StunHeader); }