📖 fix ListenTLS comment (#1859)

* 📖 fix ListenTLS comment

* 📖 fix ListenMutualTLS comment
pull/1883/head
Serhat Şevki Dinçer 2022-04-14 15:55:00 +03:00 committed by GitHub
parent f19ef67f73
commit e7ec08a1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

12
app.go
View File

@ -828,10 +828,8 @@ func (app *App) Listen(addr string) error {
return app.server.Serve(ln)
}
// ListenTLS serves HTTPs requests from the given addr.
// certFile and keyFile are the paths to TLS certificate and key file.
// app.ListenTLS(":8080", "./cert.pem", "./cert.key")
// ListenTLS serves HTTPS requests from the given addr.
// certFile and keyFile are the paths to TLS certificate and key file:
// app.ListenTLS(":8080", "./cert.pem", "./cert.key")
func (app *App) ListenTLS(addr, certFile, keyFile string) error {
// Check for valid cert/key path
@ -871,10 +869,8 @@ func (app *App) ListenTLS(addr, certFile, keyFile string) error {
return app.server.ServeTLS(ln, certFile, keyFile)
}
// ListenMutualTLS serves HTTPs requests from the given addr.
// certFile, keyFile and clientCertFile are the paths to TLS certificate and key file.
// app.ListenMutualTLS(":8080", "./cert.pem", "./cert.key", "./client.pem")
// ListenMutualTLS serves HTTPS requests from the given addr.
// certFile, keyFile and clientCertFile are the paths to TLS certificate and key file:
// app.ListenMutualTLS(":8080", "./cert.pem", "./cert.key", "./client.pem")
func (app *App) ListenMutualTLS(addr, certFile, keyFile, clientCertFile string) error {
// Check for valid cert/key path