Browse Source

feat: listen https.

Bo-Yi Wu 8 years ago
parent
commit
2da17294c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gin1.7.go

+ 1 - 1
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,
 	}