From 8ba85164aa0daabbd94fa8aa4563b5b0f487ec61 Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 11 Jul 2025 20:55:38 +0400 Subject: [PATCH] fix empty warp status --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 9cc9ffb..76c15a9 100644 --- a/app/bot.php +++ b/app/bot.php @@ -6110,7 +6110,7 @@ DNS-over-HTTPS with IP: if (!empty($this->ssh('pgrep warp-svc', 'wp'))) { $st = $this->ssh('curl -m 1 -x socks5://127.0.0.1:40000 https://cloudflare.com/cdn-cgi/trace', 'wp'); preg_match('~warp=(\w+)~', $st, $m); - return $m[1]; + return trim($m[1]) ?: 'off'; } return 'off'; }