use the raw address in the error message

This commit is contained in:
Gani Georgiev committed 2026-04-02 20:12:01 +03:00
1 parent cc535cde3b
commit 1204362e9c
1 file changed
+1 -1
+1 -1
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