Skip to content

Commit

Permalink
Merge pull request #21 from khoih-prog/master
Browse files Browse the repository at this point in the history
Fix the DNS bug
  • Loading branch information
vjmuzik committed Jun 22, 2021
2 parents 92540fd + 7f9c035 commit ef7e845
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NativeDns.cpp
Expand Up @@ -49,6 +49,13 @@ void DNSClient::fnet_dns_callback(const fnet_dns_resolved_addr_t* addr_list, lon

int DNSClient::getHostByName(const char* aHostname, IPAddress& aResult, uint16_t timeout)
{
// See if it's a numeric IP address
if (inet_aton(aHostname, aResult))
{
// It is, our work here is done
return 1;
}

resolveDone = 0;
struct fnet_dns_params dns_params = {
.dns_server_addr = {
Expand Down

0 comments on commit ef7e845

Please sign in to comment.