diff --git a/app.go b/app.go index 5ec714ffd9..c6d52fb72d 100644 --- a/app.go +++ b/app.go @@ -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