mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
fix: Allow binding IPv6 addresses for web (#650)
Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
parent
f76be6df92
commit
911902353f
1 changed files with 1 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue