Skip to content

Commit

Permalink
📖 fix ListenTLS comment (gofiber#1859)
Browse files Browse the repository at this point in the history
* 📖 fix ListenTLS comment

* 📖 fix ListenMutualTLS comment
  • Loading branch information
jfcg authored and trim21 committed Aug 15, 2022
1 parent b8d5e67 commit 03aa100
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app.go
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 03aa100

Please sign in to comment.