nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

dns_client: directly initialize g_dns_servers and remove dns_initialize directly

Open zhhyu7 opened this issue 2 years ago • 0 comments

Summary

g_dns_servers need init before dns_query, Otherwise sim can not add default dns server when use usrsock mode to share host network.

Avoid similar problems in the future, so directly initialize g_dns_servers.

Impact

Fix the regression from: https://github.com/apache/incubator-nuttx/pull/6770

Testing

internal testing

zhhyu7 avatar Aug 12 '22 07:08 zhhyu7