mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Improve intercept specs with new syntax from mitmproxy_rs (#6980)
improve intercept specs with new syntax from mitmproxy_rs
This commit is contained in:
parent
5496045e0b
commit
252a07e24a
2 changed files with 3 additions and 5 deletions
|
|
@ -465,10 +465,8 @@ class LocalRedirectorInstance(ServerInstance[mode_specs.LocalMode]):
|
|||
if self._instance:
|
||||
raise RuntimeError("Cannot spawn more than one local redirector.")
|
||||
|
||||
if self.mode.data.startswith("!"):
|
||||
spec = f"{self.mode.data},{os.getpid()}"
|
||||
elif self.mode.data:
|
||||
spec = self.mode.data
|
||||
if self.mode.data:
|
||||
spec = f"{self.mode.data},!{os.getpid()}"
|
||||
else:
|
||||
spec = f"!{os.getpid()}"
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ dependencies = [
|
|||
"hyperframe>=6.0,<=6.0.1",
|
||||
"kaitaistruct>=0.10,<=0.10",
|
||||
"ldap3>=2.8,<=2.9.1",
|
||||
"mitmproxy_rs>=0.5.1,<0.6", # relaxed upper bound here: we control this
|
||||
"mitmproxy_rs>=0.6.0,<0.7", # relaxed upper bound here: we control this
|
||||
"msgpack>=1.0.0,<=1.0.8",
|
||||
"passlib>=1.6.5,<=1.7.4",
|
||||
"protobuf<=5.27.2,>=5.27.2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue