Skip to content

Commit

Permalink
add error on empty ip list
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Aug 2, 2024
1 parent ba6a8fe commit a22dc24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/internal/routemanager/dynamic/route_ios.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ func (r *Route) getIPsFromResolver(domain domain.Domain) ([]net.IP, error) {
}
}

if len(ips) == 0 {
return nil, fmt.Errorf("no A or AAAA records found for %s", domain.SafeString())
}

return ips, nil
}

0 comments on commit a22dc24

Please sign in to comment.