dsnet/const.go
2020-03-03 23:32:07 +00:00

18 lines
413 B
Go

package dsnet
const (
// could be overridden in future via env
CONFIG_FILE = "/etc/dsnetconfig.json"
// these end up in the config file
DEFAULT_INTERFACE_NAME = "dsnet"
DEFAULT_REPORT_FILE = "/var/lib/dsnetreport.json"
DEFAULT_LISTEN_PORT = 51820
// keepalive always configured for everything
KEEPALIVE_SECONDS = 21
// when is a peer considered gone forever? (could remove)
EXPIRY_DAYS = 28
)