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

!854 Allow to get net status by netsys when there is no resolve result from default dns

Merge pull request !854 from liwentao/netsys_default
......@@ -68,6 +68,10 @@ netsys_conf:
}
}
if (nns != 0) {
goto get_conf_ok;
}
etc_resolv_conf:
#endif
f = __fopen_rb_ca("/etc/resolv.conf", &_f, _buf, sizeof _buf);
......@@ -140,6 +144,7 @@ no_resolv_conf:
nns = 1;
}
get_conf_ok:
conf->nns = nns;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册