re-order DsnetConfig

This commit is contained in:
Callan Bryant 2020-03-02 21:17:53 +00:00
parent 994814b180
commit 8e29d1cba7
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

View File

@ -51,12 +51,12 @@ type Peer struct {
type DsnetConfig struct {
// domain to append to hostnames. Relies on separate DNS server for
// resolution. Informational only.
ExternalIP net.IP `validate:"required,cidr"`
ListenPort int `validate:"gte=1024,lte=65535"`
Domain string `validate:"required,gte=1,lte=255"`
// IP network from which to allocate automatic sequential addresses
// Network is chosen randomly when not specified
Network JSONIPNet `validate:"required"`
ExternalIP net.IP `validate:"required,cidr"`
ListenPort int `validate:"gte=1024,lte=65535"`
InternalIP net.IP `validate:"required,cidr"`
InternalDNS net.IP `validate:"required,cidr"`
// TODO Default subnets to route via VPN