diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-03-26 11:40:53 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-03 11:39:29 +0800 |
commit | 9c29dab5aab70d399c51d2cae73d9e40c5948707 (patch) | |
tree | cb41214c7a35bbe1fe15d2fac47c7dab67e28666 /net/dns.c | |
parent | f76899fa9805178cf7c71daaecd4065d43ca068f (diff) | |
download | barebox-9c29dab5aab70d399c51d2cae73d9e40c5948707.tar.gz barebox-9c29dab5aab70d399c51d2cae73d9e40c5948707.tar.xz |
net: env: getenv_ip use resolv
Introduce getenv_ip_dns to be able to do not do the resolv when using it in
resolv for the nameserver (Do not loop).
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'net/dns.c')
-rw-r--r-- | net/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -205,7 +205,7 @@ IPaddr_t resolv(char *host) dns_state = STATE_INIT; - ip = getenv_ip("nameserver"); + ip = getenv_ip_dns("nameserver", 0); if (!ip) return 0; |