From e7ec08a1e912b0084c490382de600168e589ab16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhat=20=C5=9Eevki=20Din=C3=A7er?= Date: Thu, 14 Apr 2022 15:55:00 +0300 Subject: [PATCH] :book: fix ListenTLS comment (#1859) * :book: fix ListenTLS comment * :book: fix ListenMutualTLS comment --- app.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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