mirror of
https://github.com/yanislav-igonin/micrach
synced 2025-04-20 03:40:33 +03:00
check isFromLocal method
This commit is contained in:
parent
21b085962e
commit
efa354eda7
2
main.go
2
main.go
@ -59,7 +59,7 @@ func main() {
|
|||||||
|
|
||||||
app.Use(recover.New())
|
app.Use(recover.New())
|
||||||
app.Use(limiter.New(limiter.Config{
|
app.Use(limiter.New(limiter.Config{
|
||||||
Next: func(c *fiber.Ctx) bool { return c.IP() == "127.0.0.1" },
|
Next: func(c *fiber.Ctx) bool { return c.IsFromLocal() },
|
||||||
}))
|
}))
|
||||||
app.Use(compress.New())
|
app.Use(compress.New())
|
||||||
app.Use(etag.New())
|
app.Use(etag.New())
|
||||||
|
Loading…
Reference in New Issue
Block a user