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 15:03:12 -05:00
committed by GitHub
co-authored by TwiN
parent f76be6df92
commit 911902353f
+1
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{