mirror of
https://github.com/gofiber/fiber.git
synced 2025-07-14 16:20:34 +00:00
🧹 Handle TCP6 addr in Prefork
This commit is contained in:
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…
x
Reference in New Issue
Block a user