mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-07-21 09:11:06 +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
|
||||
|
||||
Reference in New Issue
Block a user