We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb4002 commit 1a47052Copy full SHA for 1a47052
libraries/WiFi/src/WiFiUdp.cpp
@@ -309,7 +309,7 @@ int WiFiUDP::parsePacket(){
309
#if LWIP_IPV6
310
else if (si_other_storage.ss_family == AF_INET6) {
311
struct sockaddr_in6 &si_other = (sockaddr_in6&) si_other_storage;
312
- remote_ip = IPAddress(IPv6, (uint8_t*)&si_other.sin6_addr); // force IPv6
+ remote_ip = IPAddress(IPv6, (uint8_t*)&si_other.sin6_addr, si_other.sin6_scope_id); // force IPv6
313
ip_addr_t *ip_addr = (ip_addr_t*) remote_ip;
314
/* Dual-stack: Unmap IPv4 mapped IPv6 addresses */
315
if (IP_IS_V6_VAL(*ip_addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(ip_addr))) {
0 commit comments