From 2da17294c906173561bec1707fb6d03c823f701c Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 4 Apr 2017 14:19:44 +0800 Subject: [PATCH] feat: listen https. --- gin1.7.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin1.7.go b/gin1.7.go index 59de3d0b..919c80f3 100644 --- a/gin1.7.go +++ b/gin1.7.go @@ -28,7 +28,7 @@ func (engine *Engine) RunAutoTLS(domain ...string) (err error) { } s := &http.Server{ - Addr: ":443", + Addr: ":https", TLSConfig: &tls.Config{GetCertificate: AutoTLSManager.GetCertificate}, Handler: engine, }