1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 12:24:02 +00:00

Merge pull request #561 from Fenny/master

💡 Show possible signatures
This commit is contained in:
fenny 2020-07-07 06:12:43 -04:00 committed by GitHub
commit 40c768698f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
app.go
View File

@ -450,6 +450,11 @@ func (app *App) Listener(ln net.Listener, tlsconfig ...*tls.Config) error {
// Listen serves HTTP requests from the given addr or port.
// You can pass an optional *tls.Config to enable TLS.
//
// - app.Listen(8080)
// - app.Listen("8080")
// - app.Listen(":8080")
// - app.Listen("127.0.0.1:8080")
func (app *App) Listen(address interface{}, tlsconfig ...*tls.Config) error {
// Convert address to string
addr, ok := address.(string)