diff --git a/model/server.go b/model/server.go index b9f148cf..5e369a2a 100644 --- a/model/server.go +++ b/model/server.go @@ -56,12 +56,7 @@ func (a Server) IsValid() []error { if a.Mtu < 0 { errs = append(errs, fmt.Errorf("MTU %d is invalid", a.PersistentKeepalive)) } - // check if the address are valid - for _, dns := range a.Dns { - if !util.IsValidIp(dns) { - errs = append(errs, fmt.Errorf("dns %s is invalid", dns)) - } - } + // check if the allowedIPs are valid for _, allowedIP := range a.AllowedIPs { if !util.IsValidCidr(allowedIP) {