fix: Allow binding IPv6 addresses for web (#650)

Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
Nicolas Thumann 2024-01-14 21:03:12 +01:00 committed by GitHub
parent f76be6df92
commit 911902353f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ func (a *API) createRouter(cfg *config.Config) *fiber.App {
log.Printf("[api.ErrorHandler] %s", err.Error())
return fiber.DefaultErrorHandler(c, err)
},
Network: fiber.NetworkTCP,
})
if os.Getenv("ENVIRONMENT") == "dev" {
app.Use(cors.New(cors.Config{