From 064cf575b64401d8fbe437978f379c38e3b27208 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sat, 9 Dec 2017 02:36:45 +0300 Subject: [PATCH] Parse DNS packet only when DNS redirection is enabled --- goodbyedpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goodbyedpi.c b/goodbyedpi.c index 1c9a9b2..f7d1654 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -559,7 +559,7 @@ int main(int argc, char *argv[]) { } /* Else if we got UDP packet with data */ - else if (WinDivertHelperParsePacket(packet, packetLen, &ppIpHdr, + else if (do_dns_redirect && WinDivertHelperParsePacket(packet, packetLen, &ppIpHdr, NULL, NULL, NULL, NULL, &ppUdpHdr, &packet_data, &packet_dataLen)) { if (addr.Direction == WINDIVERT_DIRECTION_INBOUND) {