From 07d4e92821614c1297c62cd58d58363fae6c31ac Mon Sep 17 00:00:00 2001 From: AmazingDM Date: Fri, 15 Oct 2021 01:11:11 +0800 Subject: [PATCH] [Redirector] Fix Socket Timeout --- Redirector/DNSHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Redirector/DNSHandler.cpp b/Redirector/DNSHandler.cpp index 0ce0a550..edd5c25d 100644 --- a/Redirector/DNSHandler.cpp +++ b/Redirector/DNSHandler.cpp @@ -23,7 +23,7 @@ void ProcessPacket(ENDPOINT_ID id, SOCKADDR_IN6 target, char* packet, int length { if (udpConn.Send(&dnsAddr, packet, length) == length) { - timeval timeout; + timeval timeout{}; timeout.tv_sec = 4; int size = udpConn.Read(NULL, buffer, sizeof(buffer), &timeout);