feat: listen https.

This commit is contained in:
Bo-Yi Wu 2017-04-04 14:19:44 +08:00
parent 0cb7cf88cb
commit 2da17294c9

View File

@ -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,
}