mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-11-22 01:55:19 +01:00
WinDivert 1.4 support
This commit is contained in:
parent
38b1ff1a92
commit
a028cb01f4
@ -770,7 +770,7 @@ int main(int argc, char *argv[]) {
|
||||
);
|
||||
|
||||
WinDivertHelperCalcChecksums(
|
||||
packet, packetLen - packet_dataLen + http_fragment_size, 0
|
||||
packet, packetLen - packet_dataLen + http_fragment_size, &addr, 0
|
||||
);
|
||||
WinDivertSend(
|
||||
w_filter, packet,
|
||||
@ -975,11 +975,7 @@ int main(int argc, char *argv[]) {
|
||||
if (should_reinject) {
|
||||
//printf("Re-injecting!\n");
|
||||
if (should_recalc_checksum) {
|
||||
WinDivertHelperCalcChecksums(packet, packetLen, 0);
|
||||
}
|
||||
else {
|
||||
WinDivertHelperCalcChecksums(packet, packetLen,
|
||||
WINDIVERT_HELPER_NO_REPLACE);
|
||||
WinDivertHelperCalcChecksums(packet, packetLen, &addr, NULL);
|
||||
}
|
||||
WinDivertSend(w_filter, packet, packetLen, &addr, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user