fix errors, old export file not compatible
This commit is contained in:
+1
-6
@@ -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",
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user