Skip to content

Commit 3515fb3

Browse files
authored
Fix IPv6 size
1 parent 2850122 commit 3515fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/IPAddress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ IPAddress::IPAddress(IPType type, const uint8_t *address) {
7070
memcpy(&this->_ip.u_addr.ip4, address, 4);
7171
} else if (type == IPv6) {
7272
setV6();
73-
memcpy(&this->_ip.u_addr.ip6.addr[0], address, 4);
73+
memcpy(&this->_ip.u_addr.ip6.addr[0], address, 16);
7474
} else {
7575
#if LWIP_IPV6
7676
_ip = *IP6_ADDR_ANY;

0 commit comments

Comments
 (0)