mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-31 22:45:39 -05:00
use shadowsocket's bloomring for shadowsocket's replay protection
This commit is contained in:
@@ -96,7 +96,7 @@ func (a *Account) AsAccount() (protocol.Account, error) {
|
||||
Key: passwordToCipherKey([]byte(a.Password), Cipher.KeySize()),
|
||||
replayFilter: func() antireplay.GeneralizedReplayFilter {
|
||||
if a.IvCheck {
|
||||
return antireplay.NewReplayFilter(300)
|
||||
return antireplay.NewBloomRing()
|
||||
}
|
||||
return nil
|
||||
}(),
|
||||
|
||||
Reference in New Issue
Block a user