add rate limiter

This commit is contained in:
ginuerzh
2022-09-05 22:51:57 +08:00
parent a7f4d3e63e
commit aa754f8515
3 changed files with 29 additions and 15 deletions

6
go.mod
View File

@ -5,12 +5,13 @@ go 1.18
replace github.com/templexxx/cpu v0.0.7 => github.com/templexxx/cpu v0.0.10-0.20211111114238-98168dcec14a
require (
github.com/go-gost/core v0.0.0-20220904052234-99adf4bb0692
github.com/go-gost/x v0.0.0-20220904052432-a04c8b45f30f
github.com/go-gost/core v0.0.0-20220905144653-5c46613716c1
github.com/go-gost/x v0.0.0-20220905144913-779af72f7ca3
)
require (
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
@ -88,6 +89,7 @@ require (
golang.org/x/net v0.0.0-20220812174116-3211cb980234 // indirect
golang.org/x/sys v0.0.0-20220817070843-5a390386f1f2 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
golang.org/x/tools v0.1.12 // indirect
golang.zx2c4.com/wintun v0.0.0-20211104114900-415007cec224 // indirect
golang.zx2c4.com/wireguard v0.0.0-20220703234212-c31a7b1ab478 // indirect