mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Set AI_ADDRCONFIG during DNS resolution
This commit is contained in:
parent
789eac8e6a
commit
0bb461ac85
@ -131,6 +131,7 @@ static int resolveHostName(char *host)
|
||||
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_flags = AI_ADDRCONFIG;
|
||||
err = getaddrinfo(host, NULL, &hints, &res);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user