From 4ff9e6cc01989ad305b6dddf3950808ee4057a9c Mon Sep 17 00:00:00 2001 From: Ivan Lopez Date: Wed, 18 Nov 2015 21:22:58 +0100 Subject: [PATCH] Make net.dns.resolve and net.dns work with an IP address host to resolve --- app/modules/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/net.c b/app/modules/net.c index 21af1cda..73afe2b3 100644 --- a/app/modules/net.c +++ b/app/modules/net.c @@ -238,7 +238,7 @@ static void net_dns_found(const char *name, ip_addr_t *ipaddr, void *arg) // ipaddr->addr is a uint32_t ip char ip_str[20]; c_memset(ip_str, 0, sizeof(ip_str)); - if(host_ip.addr == 0 && ipaddr->addr != 0) + if(ipaddr->addr != 0) { c_sprintf(ip_str, IPSTR, IP2STR(&(ipaddr->addr))); }