mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
bugfix for ipv6_address_value_issue
Closes https://github.com/espressif/esp-idf/issues/5663
This commit is contained in:
@@ -84,7 +84,7 @@ static void udp_client_task(void *pvParameters)
|
||||
}
|
||||
ESP_LOGI(TAG, "Message sent");
|
||||
|
||||
struct sockaddr_in source_addr; // Large enough for both IPv4 or IPv6
|
||||
struct sockaddr_storage source_addr; // Large enough for both IPv4 or IPv6
|
||||
socklen_t socklen = sizeof(source_addr);
|
||||
int len = recvfrom(sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, &socklen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user