Explorar o código

feat: listen https.

Bo-Yi Wu %!s(int64=8) %!d(string=hai) anos
pai
achega
2da17294c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
 	}