From 65f72e1e041078a4aefb672d0cd7597ba27772c9 Mon Sep 17 00:00:00 2001 From: Ivan K Date: Thu, 1 May 2025 18:29:42 +0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(podkop):=20update?= =?UTF-8?q?=20WARP=20detection=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- podkop/files/usr/bin/podkop | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index e36c365..7283c8f 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -2234,21 +2234,18 @@ global_check() { print_global "❌ WAN configuration not found" fi - local warp_found=0 if uci show network | grep -q endpoint_host; then uci show network | grep endpoint_host | cut -d'=' -f2 | tr -d "'\" " | while read -r host; do if [ "$host" = "engage.cloudflareclient.com" ]; then print_global "⚠️ WARP detected: $host" - warp_found=1 continue fi ip_prefix=$(echo "$host" | cut -d'.' -f1,2) if echo "$CLOUDFLARE_OCTETS" | grep -wq "$ip_prefix"; then print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" - print_global " ⚡ WARP DETECTION" + print_global " ➡️ WARP DETECTION" print_global "⚠️ WARP detected: $host" - warp_found=1 fi done fi