Explorar el Código

feat: listen https.

Bo-Yi Wu hace 8 años
padre
commit
2da17294c9
Se han modificado 1 ficheros con 1 adiciones y 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,
 	}