mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 12:05:38 +00:00
Put [::1] into default listen addresses
This commit is contained in:
@@ -51,7 +51,7 @@ func loadConfig(path string) (*config, error) {
|
||||
}
|
||||
|
||||
if len(conf.Listen) == 0 {
|
||||
conf.Listen = []string{"127.0.0.1:53"}
|
||||
conf.Listen = []string{"127.0.0.1:53", "[::1]:53"}
|
||||
}
|
||||
if len(conf.UpstreamGoogle) == 0 && len(conf.UpstreamIETF) == 0 {
|
||||
conf.UpstreamGoogle = []string{"https://dns.google.com/resolve"}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# DNS listen port
|
||||
listen = [
|
||||
"127.0.0.1:53"
|
||||
"127.0.0.1:53",
|
||||
"[::1]:53",
|
||||
]
|
||||
|
||||
# HTTP path for upstream resolver
|
||||
|
||||
@@ -52,7 +52,7 @@ func loadConfig(path string) (*config, error) {
|
||||
}
|
||||
|
||||
if len(conf.Listen) == 0 {
|
||||
conf.Listen = []string{"127.0.0.1:8053"}
|
||||
conf.Listen = []string{"127.0.0.1:8053", "[::1]:8053"}
|
||||
}
|
||||
|
||||
if conf.Path == "" {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# HTTP listen port
|
||||
listen = [
|
||||
"127.0.0.1:8053"
|
||||
"127.0.0.1:8053",
|
||||
"[::1]:8053",
|
||||
]
|
||||
|
||||
# TLS certification file
|
||||
|
||||
Reference in New Issue
Block a user