From 04b34854d2349d3dda7776a0e042e77d5f772e07 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 21 Dec 2025 20:43:38 +0100 Subject: [PATCH] Add the flags for SpamVerify, other fixes --- install.sh | 18 +++++++----------- scripts | 2 +- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index d8c487d..a2670b6 100644 --- a/install.sh +++ b/install.sh @@ -134,7 +134,7 @@ ask_config() { echo "$result" return 0 else - echo "❌ Must be 'true' or 'false'" + echo "❌ Must be 'true' or 'false'" >&2 fi ;; number) @@ -142,7 +142,7 @@ ask_config() { echo "$result" return 0 else - echo "❌ Must be a valid number" + echo "❌ Must be a valid number" >&2 fi ;; url) @@ -150,7 +150,7 @@ ask_config() { echo "$result" return 0 else - echo "❌ Must be a valid URL starting with http:// or https://" + echo "❌ Must be a valid URL starting with http:// or https://" >&2 fi ;; cron) @@ -158,7 +158,7 @@ ask_config() { echo "$result" return 0 else - echo "❌ Invalid cron format. Expected: 'minute hour day month weekday'" + echo "❌ Invalid cron format. Expected: 'minute hour day month weekday'" >&2 fi ;; static_dynamic) @@ -166,7 +166,7 @@ ask_config() { echo "$result" return 0 else - echo "❌ Must be 'static' or 'dynamic'" + echo "❌ Must be 'static' or 'dynamic'" >&2 fi ;; *) @@ -384,7 +384,7 @@ while true; do if awk "BEGIN {exit !($cooldown_hours >= 0.25)}"; then break else - echo "❌ Minimum cooldown is 0.25 hours (15 minutes)" + echo "❌ Minimum cooldown is 0.25 hours (15 minutes)" >&2 fi done @@ -502,11 +502,7 @@ echo -e " After editing the configuration file, restart the process: pm2 resta echo -e "\n====================================== Summary ======================================" echo "🖥️ Server ID : ${server_id//\'/}" -if [[ ${#api_token} -gt 16 ]]; then - echo "🔑 API Key : ${api_token:0:8}...${api_token: -4}" -else - echo "🔑 API Key : ${api_token:0:4}...${api_token: -4}" -fi +echo "🔑 API Key : $api_token" echo "📂 UFW Log File : $ufw_log_path" echo "💾 Cache File : $cache_file" echo "🌐 IP Assignment : $ip_assignment" diff --git a/scripts b/scripts index 8ef746b..c868746 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 8ef746bcab137a5daa02dccfcfc887d76a2e7c7e +Subproject commit c868746908a923296f958b123f69e04a624f72c1