Rework CI and fix an error (#6)
This commit is contained in:
1 parent
ab9b7d4a22
commit
bf3e4d23f3
11 files changed
+116
-475
No files matched your search
+1
-1
@@ -749,6 +749,7 @@ bool AsyncClient::connect(const char* host, uint16_t port){
|
||||
if(addr.type == IPADDR_TYPE_V6) {
|
||||
return connect(IPv6Address(addr.u_addr.ip6.addr), port);
|
||||
}
|
||||
#if LWIP_IPV6
|
||||
return connect(IPAddress(addr.u_addr.ip4.addr), port);
|
||||
#else
|
||||
return connect(IPAddress(addr.addr), port);
|
||||
@@ -1017,7 +1018,6 @@ int8_t AsyncClient::_poll(tcp_pcb* pcb){
|
||||
}
|
||||
|
||||
void AsyncClient::_dns_found(struct ip_addr *ipaddr){
|
||||
#if LWIP_IPV4 && LWIP_IPV6
|
||||
if(ipaddr && ipaddr->u_addr.ip4.addr){
|
||||
connect(IPAddress(ipaddr->u_addr.ip4.addr), _connect_port);
|
||||
} else if(ipaddr && ipaddr->u_addr.ip6.addr){
|
||||
|
||||
Reference in new issue
Block a user