未验证 提交 e9e247f0 编写于 作者: O openharmony_ci 提交者: Gitee

!993 musl支持IPv6

Merge pull request !993 from 徐杰/pr_yafei_ipv6_0720
......@@ -158,7 +158,7 @@ template("musl_libs") {
defines += [
"OHOS_DNS_PROXY_BY_NETSYS=1",
"OHOS_PERMISSION_INTERNET=1",
"STANDARD_SYSTEM",
"OHOS_DISABLE_IPV6=0",
]
}
......
......@@ -166,10 +166,10 @@ static int name_from_dns(struct address buf[static MAXADDRS], char canon[static
{ .af = AF_INET, .rr = RR_AAAA },
};
#ifdef STANDARD_SYSTEM
for (i=0; i<1; i++) {
#if OHOS_DISABLE_IPV6
for (i = 0; i < 1; i++) {
#else
for (i=0; i<2; i++) {
for (i = 0; i < 2; i++) {
#endif
if (family != afrr[i].af) {
qlens[nq] = __res_mkquery(0, name, 1, afrr[i].rr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册