diff --git a/doh-client/main.go b/doh-client/main.go index cf52026..becf33f 100644 --- a/doh-client/main.go +++ b/doh-client/main.go @@ -23,8 +23,8 @@ import ( ) func main() { - addr := flag.String("addr", ":5533", "DNS listen port") - upstream := flag.String("upstream", "http://localhost:8080/resolve", "HTTP path for upstream resolver") + addr := flag.String("addr", ":53", "DNS listen port") + upstream := flag.String("upstream", "https://dns.google.com/resolve", "HTTP path for upstream resolver") flag.Parse() client := NewClient(*addr, *upstream) diff --git a/doh-server/main.go b/doh-server/main.go index d2f1a4f..e303204 100644 --- a/doh-server/main.go +++ b/doh-server/main.go @@ -25,7 +25,7 @@ import ( ) func main() { - addr := flag.String("addr", ":8080", "HTTP listen port") + addr := flag.String("addr", "[::1]:8080", "HTTP listen port") cert := flag.String("cert", "", "TLS certification file") key := flag.String("key", "", "TLS key file") path := flag.String("path", "/resolve", "HTTP path for resolve application")