diff --git a/doh-client/config.go b/doh-client/config.go index 808d9b1..2b39950 100644 --- a/doh-client/config.go +++ b/doh-client/config.go @@ -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"} diff --git a/doh-client/doh-client.conf b/doh-client/doh-client.conf index d26b0d3..413b490 100644 --- a/doh-client/doh-client.conf +++ b/doh-client/doh-client.conf @@ -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 diff --git a/doh-server/config.go b/doh-server/config.go index 8264334..b168e99 100644 --- a/doh-server/config.go +++ b/doh-server/config.go @@ -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 == "" { diff --git a/doh-server/doh-server.conf b/doh-server/doh-server.conf index 4d8afe1..e6c88c0 100644 --- a/doh-server/doh-server.conf +++ b/doh-server/doh-server.conf @@ -1,6 +1,7 @@ # HTTP listen port listen = [ - "127.0.0.1:8053" + "127.0.0.1:8053", + "[::1]:8053", ] # TLS certification file