From 19e2d71576914c3e526f64d8e99cd47fb3610274 Mon Sep 17 00:00:00 2001 From: noO0oOo0ob <38344038+noO0oOo0ob@users.noreply.github.com> Date: Mon, 22 Apr 2024 20:00:56 +0800 Subject: [PATCH] change mitim start code (#838) * fix 4272 not be closed * version --------- Co-authored-by: wujiasheng03 --- lyrebird/mitm/proxy_server.py | 2 +- lyrebird/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lyrebird/mitm/proxy_server.py b/lyrebird/mitm/proxy_server.py index 80a362fb8..fc526d0a6 100644 --- a/lyrebird/mitm/proxy_server.py +++ b/lyrebird/mitm/proxy_server.py @@ -81,7 +81,7 @@ def start_mitmdump(self, queue, config, logger, mitmdump_path): mitmenv['PROXY_PORT'] = str(mock_port) mitmenv['PROXY_FILTERS'] = json.dumps(config.get('proxy.filters', [])) logger.info('HTTP proxy server starting...') - subprocess.Popen(f'{str(mitmdump_path)} {" ".join(mitm_arguments)}', shell=True, env=mitmenv) + subprocess.Popen([str(mitmdump_path)]+mitm_arguments, env=mitmenv) is_mitm_start = self.wait_for_mitm_start(config, logger) if is_mitm_start: self.publish_init_status(queue, 'READY') diff --git a/lyrebird/version.py b/lyrebird/version.py index 899c32dc4..7b9fc6c62 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (2, 26, 0) +IVERSION = (2, 26, 1) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION