resolve: Mention in error that IP address is expected

If you try using a DNS name like connect-to supports it can be confusing that
it is illegal. Also make it a bit more readable

Closes #21913
This commit is contained in:
Yedaya Katsman 2026-06-05 17:15:59 +03:00 committed by Daniel Stenberg
parent a2b943b115
commit 7b9d74abf6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -775,7 +775,7 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
result = Curl_str2addr(address, port, &ai);
if(result) {
infof(data, "Resolve address '%s' found illegal", address);
infof(data, "Resolve IP address '%s' found is illegal", address);
goto err;
}