formatting fixes
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2020-12-21 14:51:32 +00:00
parent 929707ce97
commit e6bc8b99b9

View File

@ -12,12 +12,12 @@ type Configuration struct {
type Host struct {
InterfaceName string
Crypto string `validate:"required,oneof=None Blake2s"`
Crypto string `validate:"required,oneof=None Blake2s"`
SharedKey string `validate:"required_if=Crypto Blake2s"`
}
type Peer struct {
Method string `validate:"oneof=TCP UDP"`
Method string `validate:"oneof=TCP UDP"`
LocalHost string `validate:"omitempty,ip"`
LocalPort uint `validate:"max=65535"`