From 554d7f3a25b7ec2bb2e4239fa2636fd77d872382 Mon Sep 17 00:00:00 2001 From: mercury Date: Sat, 21 Dec 2024 20:39:17 +0400 Subject: [PATCH] fix cloak nginx --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index c479dc7..b4f8f2e 100644 --- a/app/bot.php +++ b/app/bot.php @@ -6374,7 +6374,7 @@ DNS-over-HTTPS with IP: location CONF; $template = preg_replace('~(location /adguard.+?})\s*location~s', $r, $template); - $template = preg_replace('~location(?!\s/tlgrm\s{)(?!\s/\s{)(?!\s~\\\.well-known\s{)\s(.+)\s{~', "location $1$h {", $template); + $template = preg_replace('~location(?!\s/tlgrm\s{)(?!\s/\s{)(?!\s\~\\\.well-known\s{)\s(.+?)\s{~', 'location ${1}' . $h . ' {', $template); file_put_contents('/config/nginx.conf', $template); return $this->ssh('nginx -s reload', 'ng'); }