Rework CI and fix an error (#6)

This commit is contained in:
Jimmy Hedman
2024-01-18 08:13:53 +09:00
committed by GitHub
parent ab9b7d4a22
commit bf3e4d23f3
11 changed files with 116 additions and 475 deletions
+1 -1
View File
@@ -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){