Improve intercept specs with new syntax from mitmproxy_rs (#6980)

improve intercept specs with new syntax from mitmproxy_rs
This commit is contained in:
Maximilian Hils 2024-07-03 17:52:38 +02:00 committed by GitHub
parent 5496045e0b
commit 252a07e24a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -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()}"

View file

@ -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",