make some consts default
This commit is contained in:
parent
e1b084b801
commit
109b1d35b3
11
const.go
11
const.go
@ -1,11 +1,10 @@
|
||||
package dsnet
|
||||
|
||||
// TODO allow env override (vars) as soon as someone needs it. Probably won't
|
||||
// for ages, default interface name + locations are generally fine unless
|
||||
// multiple VPNs are needed
|
||||
|
||||
const (
|
||||
INTERFACE_NAME = "dsnet"
|
||||
// these end up in the config file
|
||||
DEFAULT_INTERFACE_NAME = "dsnet"
|
||||
DEFAULT_REPORT_FILE = "/var/lib/dsnet-report.json"
|
||||
|
||||
// could be overridden in future via env
|
||||
CONFIG_FILE = "/etc/dsnet-config.json"
|
||||
REPORT_FILE = "/var/lib/dsnet-report.json"
|
||||
)
|
||||
|
1
types.go
1
types.go
@ -54,6 +54,7 @@ type DsnetConfig struct {
|
||||
// IP network from which to allocate automatic sequential addresses
|
||||
//Network net.IPNet
|
||||
// TODO: use ParseCIDR to parse config
|
||||
// Network is chosen randomly when not specified
|
||||
Network string `validate:"required,cidr"`
|
||||
// domain to append to hostnames. Relies on separate DNS server for
|
||||
// resolution. Informational only.
|
||||
|
Loading…
Reference in New Issue
Block a user