update code

This commit is contained in:
Nick Peng
2018-05-03 23:53:15 +08:00
parent c8855bafaf
commit 1100031b0f
8 changed files with 256 additions and 11 deletions

View File

@@ -26,6 +26,12 @@ int smartdns_init()
fast_ping_result_callback(smartdns_ping_result);
ret = dns_client_init();
if (ret != 0) {
fprintf(stderr, "start dns client failed.\n");
goto errout;
}
return 0;
errout:
@@ -49,6 +55,8 @@ int smartdns_run()
void smartdns_exit()
{
fast_ping_exit();
dns_client_exit();
}
struct data {