diff --git a/proxy/vmess/protocol/user/userset.go b/proxy/vmess/protocol/user/userset.go index ca8c2ea21..037530773 100644 --- a/proxy/vmess/protocol/user/userset.go +++ b/proxy/vmess/protocol/user/userset.go @@ -5,7 +5,6 @@ import ( "time" "github.com/v2ray/v2ray-core/common/collect" - "github.com/v2ray/v2ray-core/common/log" ) const ( @@ -55,7 +54,6 @@ func (us *TimedUserSet) generateNewHashes(lastSec, nowSec int64, idx int, id ID) idHash := NewTimeHash(HMACHash{}) for lastSec < nowSec+cacheDurationSec { idHash := idHash.Hash(id.Bytes[:], lastSec) - log.Debug("Valid User Hash: %v", idHash) us.access.Lock() us.userHash[string(idHash)] = indexTimePair{idx, lastSec} us.access.Unlock() diff --git a/proxy/vmess/protocol/vmess.go b/proxy/vmess/protocol/vmess.go index d02accad5..5f4465d12 100644 --- a/proxy/vmess/protocol/vmess.go +++ b/proxy/vmess/protocol/vmess.go @@ -11,7 +11,6 @@ import ( "github.com/v2ray/v2ray-core/common/errors" v2io "github.com/v2ray/v2ray-core/common/io" - "github.com/v2ray/v2ray-core/common/log" v2net "github.com/v2ray/v2ray-core/common/net" "github.com/v2ray/v2ray-core/proxy/vmess/protocol/user" ) @@ -72,8 +71,6 @@ func (r *VMessRequestReader) Read(reader io.Reader) (*VMessRequest, error) { return nil, err } - log.Debug("Read user hash: %v", buffer[:nBytes]) - userId, timeSec, valid := r.vUserSet.GetUser(buffer[:nBytes]) if !valid { return nil, errors.NewAuthenticationError(buffer[:nBytes]) @@ -167,7 +164,6 @@ func (request *VMessRequest) ToBytes(idHash user.CounterHash, randomRangeInt64 u counter := randomRangeInt64(time.Now().UTC().Unix(), 30) hash := idHash.Hash(request.UserId.Bytes[:], counter) - log.Debug("Writing userhash: %v", hash) buffer = append(buffer, hash...) encryptionBegin := len(buffer)