mirror of https://github.com/gofiber/fiber.git
🧹 Handle TCP6 addr in Prefork
parent
468404efe4
commit
2893c13718
4
app.go
4
app.go
|
@ -490,6 +490,10 @@ func (app *App) Listen(address interface{}, tlsconfig ...*tls.Config) error {
|
|||
app.init()
|
||||
// Start prefork
|
||||
if app.Settings.Prefork {
|
||||
// Prefork only supports tcp4 or tcp6, but not both
|
||||
if isIPv6(addr) {
|
||||
app.Settings.Network = "tcp6"
|
||||
}
|
||||
return app.prefork(addr, tlsconfig...)
|
||||
}
|
||||
// Setup listener
|
||||
|
|
Loading…
Reference in New Issue