From 79fd8c8f25852535f040f2aab3201253fad21c54 Mon Sep 17 00:00:00 2001 From: seagullz4 <96653729+seagullz4@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:45:56 +0800 Subject: [PATCH] Update hysteria2.py Signed-off-by: seagullz4 <96653729+seagullz4@users.noreply.github.com> --- hysteria2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hysteria2.py b/hysteria2.py index 21cad98..b7384fc 100644 --- a/hysteria2.py +++ b/hysteria2.py @@ -33,7 +33,7 @@ def check_linux_system(): #检查Linux系统为哪个进行对应的安装 check_file = subprocess.run("apt update && apt install -y curl sudo openssl qrencode net-tools procps iptables ca-certificates",shell = True) #安装依赖 print(check_file) elif "rocky" in sys_version.read_text().lower() or "centos" in sys_version.read_text().lower() or "fedora" in sys_version.read_text().lower(): - check_file = subprocess.run("dnf install -y epel-release curl sudo openssl qrencode net-tools procps iptables ca-certificates",shell=True) + check_file = subprocess.run("dnf install -y epel-release curl sudo openssl qrencode net-tools procps iptables-services ca-certificates",shell=True) print(check_file) else: print("\033[91m暂时不支持该系统,推荐使用Debian 11/Ubuntu 22.04 LTS/Rocky Linux 8/CentOS Stream 8/Fedora 37 更高以上的系统\033[m") @@ -455,4 +455,4 @@ def generate_certificate(): #生成自签证书 sys.exit() else: print("\033[91m输入错误,请重新输入\033[m") - time.sleep(1) \ No newline at end of file + time.sleep(1)