fix cloak DoT

This commit is contained in:
mercury
2024-12-22 15:16:35 +04:00
parent 90afbbedb0
commit dcb4f72f07
+1 -1
View File
@@ -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'])) {