diff --git a/README.md b/README.md index 1e68d6e6..1a9a8b7c 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Send pull request if you want to be listed here. * EDNS0, NSID; * AXFR/IXFR; * TSIG, SIG(0); -* DNS over TLS; +* DNS over TLS: optional encrypted connection between client and server; * DNS name compression; * Depends only on the standard library. diff --git a/server.go b/server.go index 9ed47588..0ba076b2 100644 --- a/server.go +++ b/server.go @@ -100,11 +100,8 @@ func ListenAndServe(addr string, network string, handler Handler) error { return server.ListenAndServe() } -// ListenAndServeTLS acts identically to ListenAndServe, except that it -// expects TLS connections. Additionally, files containing a certificate and -// matching private key for the server must be provided. If the certificate -// is signed by a certificate authority, the certFile should be the concatenation -// of the server's certificate, any intermediates, and the CA's certificate. +// ListenAndServeTLS acts like http.ListenAndServeTLS, more information in +// http://golang.org/pkg/net/http/#ListenAndServeTLS func ListenAndServeTLS(addr, certFile, keyFile string, handler Handler) error { cert, err := tls.LoadX509KeyPair(certFile, keyFile) if err != nil {