提交 88d84b7c 编写于 作者: R Rich Felker

fix default nameserver when resolv.conf doesn't exist

上级 f42bad9c
......@@ -82,8 +82,9 @@ int __dns_doqueries(unsigned char *dest, const char *name, int *rr, int rrcnt)
}
if (f) __fclose_ca(f);
if (!nns) {
ns[0].sin.sin_family = AF_INET;
ns[0].sin.sin_family = family = AF_INET;
ns[0].sin.sin_port = htons(53);
ns[0].sin.sin_addr.s_addr = htonl(0x7f000001);
nns=1;
sl = sizeof sa.sin;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册