1
0
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:
Shelikhoo
2021-03-13 10:34:13 +00:00
parent 7f5bc447d9
commit d55d5423fb
4 changed files with 41 additions and 1 deletions

View File

@@ -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
}(),