diff --git a/mitmproxy/proxy/mode_servers.py b/mitmproxy/proxy/mode_servers.py index a8ff78d70..855b21d54 100644 --- a/mitmproxy/proxy/mode_servers.py +++ b/mitmproxy/proxy/mode_servers.py @@ -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()}" diff --git a/pyproject.toml b/pyproject.toml index c86752863..e5e59ea17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",