From 7b9d74abf6fb446d5c388c75755100998c67944a Mon Sep 17 00:00:00 2001 From: Yedaya Katsman Date: Fri, 5 Jun 2026 17:15:59 +0300 Subject: [PATCH] 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 --- lib/dnscache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dnscache.c b/lib/dnscache.c index 82114b4920..7432a1a301 100644 --- a/lib/dnscache.c +++ b/lib/dnscache.c @@ -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; }