From ab54291a25e9280de014e7b4016925ae8eeaf39e Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Wed, 9 Oct 2024 00:13:04 +0330 Subject: [PATCH] Fix Manage obfs --- core/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cli.py b/core/cli.py index 32dcb68..bbf3775 100644 --- a/core/cli.py +++ b/core/cli.py @@ -29,7 +29,7 @@ class Command(Enum): RESET_USER = os.path.join(SCRIPT_DIR, 'hysteria2', 'reset_user.sh') REMOVE_USER = os.path.join(SCRIPT_DIR, 'hysteria2', 'remove_user.sh') SHOW_USER_URI = os.path.join(SCRIPT_DIR, 'hysteria2', 'show_user_uri.sh') - REMOVE_OBFS = os.path.join(SCRIPT_DIR, 'hysteria2', 'remove_obfs.sh') + MANAGE_OBFS = os.path.join(SCRIPT_DIR, 'hysteria2', 'manage_obfs.sh') TRAFFIC_STATUS = 'traffic.py' # won't be call directly (it's a python module) LIST_USERS = os.path.join(SCRIPT_DIR, 'hysteria2', 'list_users.sh') SERVER_INFO = os.path.join(SCRIPT_DIR, 'hysteria2', 'server_info.sh') @@ -258,10 +258,10 @@ def manage_obfs(remove, generate): return elif remove: click.echo("Removing 'obfs' from config.json...") - run_cmd(['bash', Command.REMOVE_OBFS.value, '--remove']) + run_cmd(['bash', Command.MANAGE_OBFS.value, '--remove']) elif generate: click.echo("Generating 'obfs' in config.json...") - run_cmd(['bash', Command.REMOVE_OBFS.value, '--generate']) + run_cmd(['bash', Command.MANAGE_OBFS.value, '--generate']) else: click.echo("Error: Please specify either --remove or --generate.")