mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
windows transparent mode: always recalculate checksum
This commit is contained in:
parent
8ebcf8ec96
commit
54ee135f65
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user