diff --git a/core/scripts/hysteria2/install.sh b/core/scripts/hysteria2/install.sh index e90b07c..2fdd92e 100644 --- a/core/scripts/hysteria2/install.sh +++ b/core/scripts/hysteria2/install.sh @@ -5,28 +5,6 @@ source /etc/hysteria/core/scripts/utils.sh source /etc/hysteria/core/scripts/scheduler.sh define_colors -compile_auth_binary() { - echo "Compiling authentication binary..." - local auth_dir="/etc/hysteria/core/scripts/auth" - - if [ -f "$auth_dir/user_auth.go" ]; then - ( - cd "$auth_dir" || exit 1 - go mod init hysteria-auth >/dev/null 2>&1 - go mod tidy >/dev/null 2>&1 - if go build -o user_auth .; then - chmod +x user_auth - echo "Authentication binary compiled successfully." - else - echo -e "${red}Error:${NC} Failed to compile the authentication binary." - exit 1 - fi - ) - else - echo -e "${red}Error:${NC} Go source file not found at $auth_dir/user_auth.go" - exit 1 - fi -} install_hysteria() { local port=$1 @@ -36,8 +14,6 @@ install_hysteria() { mkdir -p /etc/hysteria && cd /etc/hysteria/ - compile_auth_binary - echo "Generating CA key and certificate..." openssl ecparam -genkey -name prime256v1 -out ca.key >/dev/null 2>&1 openssl req -new -x509 -days 36500 -key ca.key -out ca.crt -subj "/CN=$sni" >/dev/null 2>&1