第一步

mitmweb --mode upstream:http://114.240.101.242:5672 -s server.py

第二步

    def request(self, flow: mitmproxy.http.HTTPFlow):
        print("开始修改ip")
        proxy = ("114.240.101.242", 5672)
    # 这里配置二级代理的ip地址和端口
        if flow.live:
            print("设置代理")
            flow.live.change_upstream_proxy_server(proxy)

相关文章:

  • 2021-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-12-23
  • 2021-08-24
  • 2021-09-16
猜你喜欢
  • 2021-10-07
  • 2021-08-15
  • 2021-12-19
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案