mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 12:04:03 +03:00
Tune defaults
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
package antireplay
|
||||
|
||||
const (
|
||||
DefaultMaxSize = 10 * 1024 * 1024 // 10mib
|
||||
DefaultErrorRate = 0.0001
|
||||
DefaultMaxSize = 1024 * 1024 // 1MiB
|
||||
DefaultErrorRate = 0.001
|
||||
)
|
||||
|
||||
+2
-2
@@ -137,10 +137,10 @@ enabled = true
|
||||
# approximate we try hard to store data quite dense but it is possible
|
||||
# that we can go over this limit for 10-20% under some conditions and
|
||||
# architectures.
|
||||
max-size = "16mb"
|
||||
max-size = "1mib"
|
||||
# we use stable bloom filters for anti-replay cache. This helps
|
||||
# to maintain a desired error ratio.
|
||||
error-rate = 0.0001
|
||||
error-rate = 0.001
|
||||
|
||||
# You can protect proxies by using different blocklists. If client has
|
||||
# ip from the given range, we do not try to do a proper handshake. We
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ package timeattack
|
||||
import "time"
|
||||
|
||||
const (
|
||||
DefaultDuration = time.Second
|
||||
DefaultDuration = 5 * time.Second
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user