1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

Fix custom broadcasts not resolving on windows.

This commit is contained in:
Mr_Goldberg 2019-05-08 16:31:23 -04:00
parent 147fc50be1
commit fae4df7012
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -470,8 +470,9 @@ static void socket_timeouts(struct TCP_Socket &socket, double extra_time)
std::set<uint32> Networking::resolve_ip(std::string dns)
{
run_at_startup();
std::set<uint32> ips;
struct addrinfo* result;
struct addrinfo* result = NULL;
if (getaddrinfo(dns.c_str(), NULL, NULL, &result) == 0) {
for (struct addrinfo *res = result; res != NULL; res = res->ai_next) {