Using ns_c_in and ns_t_txt for compatibility with OSX.
This commit is contained in:
parent
f7a029ade3
commit
e1582544b1
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ int ipfs_dnslink_resolv_lookupTXT(char ***txt, char *domain)
|
||||||
u_char responseByte[4096];
|
u_char responseByte[4096];
|
||||||
|
|
||||||
// Use res_query from libresolv to retrieve TXT record from DNS server.
|
// Use res_query from libresolv to retrieve TXT record from DNS server.
|
||||||
if ((responseLength = res_query(domain,C_IN,T_TXT,responseByte,sizeof(responseByte))) < 0 ||
|
if ((responseLength = res_query(domain,ns_c_in,ns_t_txt,responseByte,sizeof(responseByte))) < 0 ||
|
||||||
ns_initparse(responseByte,responseLength,&query_parse_msg) < 0) {
|
ns_initparse(responseByte,responseLength,&query_parse_msg) < 0) {
|
||||||
return ErrResolveFailed;
|
return ErrResolveFailed;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue