From fb502ca58b20561415b7d8b3d00aa987521b130d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 3 Apr 2017 23:42:21 +0800 Subject: [PATCH] docs: update --- gin1.7.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gin1.7.go b/gin1.7.go index 7599fdf0..59de3d0b 100644 --- a/gin1.7.go +++ b/gin1.7.go @@ -9,6 +9,7 @@ import ( "golang.org/x/crypto/acme/autocert" ) +// AutoTLSManager is a stateful certificate manager built on top of acme.Client. var AutoTLSManager = autocert.Manager{ Prompt: autocert.AcceptTOS, } @@ -21,7 +22,7 @@ func (engine *Engine) RunAutoTLS(domain ...string) (err error) { debugPrint("Listening and serving HTTPS on host name is %s\n", domain) defer func() { debugPrintError(err) }() - //your domain here + // HostPolicy controls which domains the Manager will attempt if len(domain) != 0 { AutoTLSManager.HostPolicy = autocert.HostWhitelist(domain...) }