support xtls-rprx-vision, support reality

This commit is contained in:
yuzuki999
2023-05-22 10:36:10 +08:00
parent 0ebc45e2d2
commit 40edaedb22
13 changed files with 112 additions and 223 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/juju/ratelimit"
"github.com/xtls/xray-core/common/task"
"log"
"regexp"
"sync"
"time"
)
@@ -29,7 +30,7 @@ func Init() {
}
type Limiter struct {
Rules []panel.DestinationRule
Rules []*regexp.Regexp
ProtocolRules []string
SpeedLimit int
UserLimitInfo *sync.Map // Key: Uid value: UserLimitInfo