Skip to content

Commit

Permalink
analyzer: do not depend on local network (#50528) (#50536)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3deab95)
  • Loading branch information
howardjohn committed Apr 18, 2024
1 parent a53244d commit b5dd22e
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,5 @@ func lintWebhookURL(webhookURL string) string {
return "is an IP address instead of a hostname"
}

ips, err := net.LookupIP(parsedHostname)
if err != nil {
return "cannot be resolved via a DNS lookup"
}
if len(ips) == 0 {
return "resolves with zero IP addresses"
}

return ""
}

0 comments on commit b5dd22e

Please sign in to comment.