Skip to content

Commit 064cf57

Browse files
committed
Parse DNS packet only when DNS redirection is enabled
1 parent a67f42e commit 064cf57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: goodbyedpi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ int main(int argc, char *argv[]) {
559559
}
560560

561561
/* Else if we got UDP packet with data */
562-
else if (WinDivertHelperParsePacket(packet, packetLen, &ppIpHdr,
562+
else if (do_dns_redirect && WinDivertHelperParsePacket(packet, packetLen, &ppIpHdr,
563563
NULL, NULL, NULL, NULL, &ppUdpHdr, &packet_data, &packet_dataLen)) {
564564

565565
if (addr.Direction == WINDIVERT_DIRECTION_INBOUND) {

0 commit comments

Comments
 (0)