Skip to content

Commit

Permalink
Update hysteria2.py
Browse files Browse the repository at this point in the history
Signed-off-by: seagullz4 <[email protected]>
  • Loading branch information
seagullz4 authored Jan 14, 2025
1 parent 1f5c768 commit 79fd8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hysteria2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -455,4 +455,4 @@ def generate_certificate(): #生成自签证书
sys.exit()
else:
print("\033[91m输入错误,请重新输入\033[m")
time.sleep(1)
time.sleep(1)

0 comments on commit 79fd8c8

Please sign in to comment.