Allow adding 3 nameserver addresses (#1588)

This commit is contained in:
Maycon Santos
2024-02-19 14:29:20 +01:00
committed by GitHub
parent 0afd738509
commit cb3408a10b
3 changed files with 14 additions and 4 deletions

View File

@@ -255,8 +255,8 @@ func validateNSGroupName(name, nsGroupID string, nsGroupMap map[string]*nbdns.Na
func validateNSList(list []nbdns.NameServer) error {
nsListLenght := len(list)
if nsListLenght == 0 || nsListLenght > 2 {
return status.Errorf(status.InvalidArgument, "the list of nameservers should be 1 or 2, got %d", len(list))
if nsListLenght == 0 || nsListLenght > 3 {
return status.Errorf(status.InvalidArgument, "the list of nameservers should be 1 or 3, got %d", len(list))
}
return nil
}