Procházet zdrojové kódy

windows transparent mode: always recalculate checksum

master
Maximilian Hils před 6 roky
committed by GitHub
rodič
revize
54ee135f65
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      mitmproxy/platform/windows.py

+ 3
- 1
mitmproxy/platform/windows.py Zobrazit soubor

@@ -338,7 +338,9 @@ class RedirectLocal(Redirect):
if pid not in self.trusted_pids:
self.redirect_request(packet)
else:
self.windivert.send(packet, recalculate_checksum=False)
# It's not really clear why we need to recalculate the checksum here,
# but this was identified as necessary in https://github.com/mitmproxy/mitmproxy/pull/3174.
self.windivert.send(packet, recalculate_checksum=True)


TConnection = typing.Tuple[str, int]


Načítá se…
Zrušit
Uložit