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

19 lines
488 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. Set to a value likely to
// stop most NATs from dropping the connection.
KEEPALIVE_SECONDS = 21
// when is a peer considered gone forever? (could remove)
EXPIRY_DAYS = 28
)