diff --git a/app/bot.php b/app/bot.php index 0efeb6c..f100fb0 100644 --- a/app/bot.php +++ b/app/bot.php @@ -6371,7 +6371,7 @@ DNS-over-HTTPS with IP: location CONF; $template = preg_replace('~(location /adguard.+?})\s*location~s', $r, $template); - $template = preg_replace('~(/webapp|/pac|/adguard|/ws|/dns-query)~', '${1}' . $h, $template); + $template = preg_replace('~(/webapp|/pac|/adguard|/ws|location /dns-query)~', '${1}' . $h, $template); file_put_contents('/config/nginx.conf', $template); $x = $this->getXray(); if (!empty($x['inbounds'][0]['streamSettings']['wsSettings']['path'])) {