Add possibility to disable antireplay cache

This commit is contained in:
9seconds
2020-02-03 11:26:37 +03:00
parent 566955b8b7
commit a47edf08d0
3 changed files with 25 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
package antireplay
type nilCache struct{}
func (n nilCache) AddObfuscated2(_ []byte) {}
func (n nilCache) AddTLS(_ []byte) {}
func (n nilCache) HasObfuscated2(_ []byte) bool { return false }
func (n nilCache) HasTLS(_ []byte) bool { return false }