Explorar o código

Increase Drain Pool

Shelikhoo %!s(int64=5) %!d(string=hai) anos
pai
achega
13cef19430
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      proxy/vmess/encoding/server.go

+ 1 - 1
proxy/vmess/encoding/server.go

@@ -126,7 +126,7 @@ func parseSecurityType(b byte) protocol.SecurityType {
 func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.RequestHeader, error) {
 	buffer := buf.New()
 	behaviorRand := dice.NewDeterministicDice(int64(s.userValidator.GetBehaviorSeed()))
-	DrainSize := behaviorRand.Roll(387) + 16 + 38
+	DrainSize := behaviorRand.Roll(3266) + 16 + 38 + dice.Roll(behaviorRand.Roll(64))
 	readSizeRemain := DrainSize
 
 	drainConnection := func(e error) error {