Change documentation based on @miekg comments

See #297
This commit is contained in:
Rafael Dantas Justo 2016-01-11 08:40:14 -02:00
parent 72c041d2f5
commit ad79b3f5fb
2 changed files with 3 additions and 6 deletions

View File

@ -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.

View File

@ -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 {