fix errors, old export file not compatible

This commit is contained in:
mercury
2023-04-10 23:27:36 +04:00
parent 6e51754c5f
commit b5a78e6e50
3 changed files with 5 additions and 6 deletions
+1 -6
View File
@@ -1829,18 +1829,13 @@ DNS-over-HTTPS with IP:
$ip = $this->ip;
$domain = $conf['domain'] ?: $ip;
$scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https';
$text = "";
$text = "$scheme://$domain/adguard\n\n";
if ($ssl) {
$text .= "DNS over HTTPS:\n<code>$ip</code>\n<code>$scheme://$domain/dns-query</code>\n\n";
$text .= "DNS over TLS:\n<code>$ip:853</code>";
}
$data = [
[
[
'text' => $this->i18n('adguard web'),
'url' => "$scheme://$domain/adguard",
],
[
'text' => $this->i18n('change password'),
'callback_data' => "/adguardpsswd",
+2
View File
@@ -103,6 +103,7 @@ http {
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# }
#-domain
#-ssl
# # The DoH server block
# location /dns-query {
@@ -124,6 +125,7 @@ http {
# proxy_pass https://ad/dns-query;
# }
#-ssl
#-domain
# }
#-domain
}
+2
View File
@@ -103,6 +103,7 @@ http {
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# }
#-domain
#-ssl
# # The DoH server block
# location /dns-query {
@@ -124,6 +125,7 @@ http {
# proxy_pass https://ad/dns-query;
# }
#-ssl
#-domain
# }
#-domain
}