mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
24w19a
This commit is contained in:
parent
c0af779642
commit
a8af0fb687
1 changed files with 0 additions and 6 deletions
6
main.go
6
main.go
|
|
@ -5,7 +5,6 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"ghproxy/api"
|
||||
"ghproxy/auth"
|
||||
|
|
@ -13,7 +12,6 @@ import (
|
|||
"ghproxy/logger"
|
||||
"ghproxy/proxy"
|
||||
|
||||
"github.com/gin-contrib/ratelimit"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
|
@ -78,10 +76,6 @@ func init() {
|
|||
|
||||
router = gin.Default()
|
||||
router.UseH2C = true
|
||||
router.Use(ratelimit.New(
|
||||
ratelimit.WithTotolLimit(10),
|
||||
ratelimit.WithDuration(1*time.Minute),
|
||||
))
|
||||
|
||||
setupApi(cfg, router)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue