From 6b6818efa41a78f8803ee2ccd1a1af14cea79b05 Mon Sep 17 00:00:00 2001 From: Michael S2pac Date: Fri, 28 Nov 2025 00:09:10 +0300 Subject: [PATCH] Refactoring --- docker-cron-runner/xray-tools.sh | 2 -- x-ui.sh | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/docker-cron-runner/xray-tools.sh b/docker-cron-runner/xray-tools.sh index 8eafd937..5765f330 100644 --- a/docker-cron-runner/xray-tools.sh +++ b/docker-cron-runner/xray-tools.sh @@ -128,8 +128,6 @@ install_xray_core() { rm "Xray-linux-${ARCH}.zip" } -# --- dispatcher: вызываем функции по имени ТОЛЬКО если скрипт запущен как файл --- -# Предполагаем, что файл называется xray-updates.sh if [ "${0##*/}" = "xray-tools.sh" ]; then cmd="$1" shift || true diff --git a/x-ui.sh b/x-ui.sh index f56eca35..d9ad9621 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -865,27 +865,6 @@ delete_ports() { fi } -#update_all_geofiles() { -# update_main_geofiles -# update_ir_geofiles -# update_ru_geofiles -#} -# -#update_main_geofiles() { -# wget -O geoip.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -# wget -O geosite.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -#} -# -#update_ir_geofiles() { -# wget -O geoip_IR.dat https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geoip.dat -# wget -O geosite_IR.dat https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geosite.dat -#} -# -#update_ru_geofiles() { -# wget -O geoip_RU.dat https://github.com/runetfreedom/russia-v2ray-rules-dat/releases/latest/download/geoip.dat -# wget -O geosite_RU.dat https://github.com/runetfreedom/russia-v2ray-rules-dat/releases/latest/download/geosite.dat -#} - update_geo() { echo -e "${green}\t1.${plain} Loyalsoldier (geoip.dat, geosite.dat)" echo -e "${green}\t2.${plain} chocolate4u (geoip_IR.dat, geosite_IR.dat)"