Fixes for Termux

This commit is contained in:
SChernykh
2022-05-02 21:24:51 +02:00
parent 8aebcdc580
commit 6b4640c413
4 changed files with 16 additions and 4 deletions

View File

@@ -349,7 +349,7 @@ bool resolve_host(std::string& host, bool& is_v6)
addrinfo hints{};
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG;
hints.ai_flags = AI_ADDRCONFIG;
addrinfo* r = nullptr;
const int err = getaddrinfo(host.c_str(), nullptr, &hints, &r);