mirror of https://github.com/gofiber/fiber.git
📖 fix ListenTLS comment (#1859)
* 📖 fix ListenTLS comment * 📖 fix ListenMutualTLS commentpull/1883/head
parent
f19ef67f73
commit
e7ec08a1e9
12
app.go
12
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
|
||||
|
|
Loading…
Reference in New Issue