use the raw address in the error message

This commit is contained in:
Gani Georgiev
2026-04-02 20:12:01 +03:00
parent cc535cde3b
commit 1204362e9c

View File

@@ -440,7 +440,7 @@ func safeHTTPClient() (*http.Client, error) {
ip.IsLinkLocalUnicast() ||
ip.IsLinkLocalMulticast() ||
ip.IsMulticast() {
return fmt.Errorf("address %q is invalid or not allowed", ip.String())
return fmt.Errorf("address %q is invalid or resolve to disallowed IP", address)
}
return nil