diff --git a/configtypes.go b/configtypes.go index 4aedf0d..21096d1 100644 --- a/configtypes.go +++ b/configtypes.go @@ -74,6 +74,10 @@ func MustLoadDsnetConfig() *DsnetConfig { err = validator.New().Struct(conf) check(err) + if len(conf.ExternalIP) == 0 && len(conf.ExternalIP6) == 0 { + ExitFail("Config does not contain ExternalIP or ExternalIP6") + } + return &conf }