mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:54:01 +03:00
Tune defaults
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package antireplay
|
package antireplay
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultMaxSize = 10 * 1024 * 1024 // 10mib
|
DefaultMaxSize = 1024 * 1024 // 1MiB
|
||||||
DefaultErrorRate = 0.0001
|
DefaultErrorRate = 0.001
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -137,10 +137,10 @@ enabled = true
|
|||||||
# approximate we try hard to store data quite dense but it is possible
|
# 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
|
# that we can go over this limit for 10-20% under some conditions and
|
||||||
# architectures.
|
# architectures.
|
||||||
max-size = "16mb"
|
max-size = "1mib"
|
||||||
# we use stable bloom filters for anti-replay cache. This helps
|
# we use stable bloom filters for anti-replay cache. This helps
|
||||||
# to maintain a desired error ratio.
|
# 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
|
# 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
|
# 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"
|
import "time"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultDuration = time.Second
|
DefaultDuration = 5 * time.Second
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user