From fae4df70126ed0d173aeab7d5724714ae1d2b74d Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Wed, 8 May 2019 16:31:23 -0400 Subject: [PATCH] Fix custom broadcasts not resolving on windows. --- dll/network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/network.cpp b/dll/network.cpp index 94b0c7c..db87adc 100644 --- a/dll/network.cpp +++ b/dll/network.cpp @@ -470,8 +470,9 @@ static void socket_timeouts(struct TCP_Socket &socket, double extra_time) std::set Networking::resolve_ip(std::string dns) { + run_at_startup(); std::set 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) {