Skip to content

Commit 1a47052

Browse files
authored
Update WiFiUdp.cpp for IPv6 zone id
1 parent eeb4002 commit 1a47052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ int WiFiUDP::parsePacket(){
309309
#if LWIP_IPV6
310310
else if (si_other_storage.ss_family == AF_INET6) {
311311
struct sockaddr_in6 &si_other = (sockaddr_in6&) si_other_storage;
312-
remote_ip = IPAddress(IPv6, (uint8_t*)&si_other.sin6_addr); // force IPv6
312+
remote_ip = IPAddress(IPv6, (uint8_t*)&si_other.sin6_addr, si_other.sin6_scope_id); // force IPv6
313313
ip_addr_t *ip_addr = (ip_addr_t*) remote_ip;
314314
/* Dual-stack: Unmap IPv4 mapped IPv6 addresses */
315315
if (IP_IS_V6_VAL(*ip_addr) && ip6_addr_isipv4mappedipv6(ip_2_ip6(ip_addr))) {

0 commit comments

Comments
 (0)