increase timeout for handshake interval
This commit is contained in:
parent
5f623dcd9d
commit
75549f2ab7
12
const.go
12
const.go
@ -13,11 +13,13 @@ const (
|
|||||||
DEFAULT_REPORT_FILE = "/var/lib/dsnetreport.json"
|
DEFAULT_REPORT_FILE = "/var/lib/dsnetreport.json"
|
||||||
DEFAULT_LISTEN_PORT = 51820
|
DEFAULT_LISTEN_PORT = 51820
|
||||||
|
|
||||||
// keepalive always configured for everything. Set to a value likely to
|
// keepalive always configured for clients. Set to a value likely to
|
||||||
// stop most NATs from dropping the connection.
|
// stop most NATs from dropping the connection. Wireguard docs recommend 25
|
||||||
KEEPALIVE = 21 * time.Second
|
// for most NATs
|
||||||
// allow missing a single keepalive + margin. Received data resets timeout, too.
|
KEEPALIVE = 25 * time.Second
|
||||||
TIMEOUT = 50 * time.Second
|
|
||||||
|
// if last handshake (different from keepalive, see https://www.wireguard.com/protocol/)
|
||||||
|
TIMEOUT = 3 * time.Minute
|
||||||
|
|
||||||
// when is a peer considered gone forever? (could remove)
|
// when is a peer considered gone forever? (could remove)
|
||||||
EXPIRY = 28 * time.Hour * 24
|
EXPIRY = 28 * time.Hour * 24
|
||||||
|
Loading…
Reference in New Issue
Block a user