mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add white/black ip list
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"server/web/blocker"
|
||||
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
@@ -27,7 +29,7 @@ func Start(port string) {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
|
||||
route := gin.New()
|
||||
route.Use(gin.Recovery(), cors.Default())
|
||||
route.Use(gin.Recovery(), cors.Default(), blocker.Blocker())
|
||||
|
||||
route.GET("/echo", echo)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user