From 18d7f3459ebeae51964cd90f43760a819bc8a234 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 2 May 2025 13:41:34 +0330 Subject: [PATCH] fix: resolved permission issue by adjusting subprocess call to explicitly use Python --- core/scripts/hysteria2/change_port.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/scripts/hysteria2/change_port.py b/core/scripts/hysteria2/change_port.py index bdb037a..2494f18 100644 --- a/core/scripts/hysteria2/change_port.py +++ b/core/scripts/hysteria2/change_port.py @@ -34,9 +34,7 @@ def update_port(port): with open(CONFIG_FILE, 'w') as f: json.dump(config, f, indent=2) - subprocess.run([CLI_PATH, "restart-hysteria2"], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL) + subprocess.run(["python3", CLI_PATH, "restart-hysteria2"],) print(f"Port changed successfully to {port}.") return True