mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2025-12-17 04:44:36 +03:00
Calculate checksums even there's no packet modifications.
This commit is contained in:
@@ -428,6 +428,10 @@ int main(int argc, char *argv[]) {
|
|||||||
if (should_recalc_checksum) {
|
if (should_recalc_checksum) {
|
||||||
WinDivertHelperCalcChecksums(packet, packetLen, 0);
|
WinDivertHelperCalcChecksums(packet, packetLen, 0);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
WinDivertHelperCalcChecksums(packet, packetLen,
|
||||||
|
WINDIVERT_HELPER_NO_REPLACE);
|
||||||
|
}
|
||||||
WinDivertSend(w_filter, packet, packetLen, &addr, NULL);
|
WinDivertSend(w_filter, packet, packetLen, &addr, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user