浏览代码

windows transparent mode: always recalculate checksum

master
Maximilian Hils 6 年前
committed by GitHub
父节点
当前提交
54ee135f65
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      mitmproxy/platform/windows.py

+ 3
- 1
mitmproxy/platform/windows.py 查看文件

@@ -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]


正在加载...
取消
保存