We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2850122 commit 3515fb3Copy full SHA for 3515fb3
cores/esp32/IPAddress.cpp
@@ -70,7 +70,7 @@ IPAddress::IPAddress(IPType type, const uint8_t *address) {
70
memcpy(&this->_ip.u_addr.ip4, address, 4);
71
} else if (type == IPv6) {
72
setV6();
73
- memcpy(&this->_ip.u_addr.ip6.addr[0], address, 4);
+ memcpy(&this->_ip.u_addr.ip6.addr[0], address, 16);
74
} else {
75
#if LWIP_IPV6
76
_ip = *IP6_ADDR_ANY;
0 commit comments