We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ClientContext::connect()
1 parent bde6ab1 commit 0049090Copy full SHA for 0049090
libraries/ESP8266WiFi/src/include/ClientContext.h
@@ -131,6 +131,9 @@ class ClientContext
131
132
int connect(ip_addr_t* addr, uint16_t port)
133
{
134
+ // note: not using `const ip_addr_t* addr` because
135
+ // - `ip6_addr_assign_zone()` below modifies `*addr`
136
+ // - caller's parameter `WiFiClient::connect` is a local copy
137
#if LWIP_IPV6
138
// Set zone so that link local addresses use the default interface
139
if (IP_IS_V6(addr) && ip6_addr_lacks_zone(ip_2_ip6(addr), IP6_UNKNOWN)) {
0 commit comments