2020-02-26 21:40:12 +01:00
|
|
|
package dsnet
|
|
|
|
|
|
|
|
const (
|
2020-02-28 00:09:18 +01:00
|
|
|
// could be overridden in future via env
|
|
|
|
CONFIG_FILE = "/etc/dsnet-config.json"
|
|
|
|
|
2020-02-27 23:31:44 +01:00
|
|
|
// these end up in the config file
|
|
|
|
DEFAULT_INTERFACE_NAME = "dsnet"
|
|
|
|
DEFAULT_REPORT_FILE = "/var/lib/dsnet-report.json"
|
2020-03-01 21:54:33 +01:00
|
|
|
DEFAULT_LISTEN_PORT = 51820;
|
2020-02-27 23:31:44 +01:00
|
|
|
|
2020-02-28 00:09:18 +01:00
|
|
|
// keepalive always configured for everything
|
|
|
|
KEEPALIVE_SECONDS = 21;
|
|
|
|
|
|
|
|
// when is a peer considered gone forever? (could remove)
|
|
|
|
EXPIRY_DAYS = 28;
|
|
|
|
|
|
|
|
|
2020-02-26 21:40:12 +01:00
|
|
|
)
|