diff options
| author | dartraiden <wowemuh@gmail.com> | 2024-12-12 09:52:45 +0300 |
|---|---|---|
| committer | dartraiden <wowemuh@gmail.com> | 2024-12-12 09:55:10 +0300 |
| commit | cefdd26d62e01878b8e8acbb78a8fcc477a63fd9 (patch) | |
| tree | 023cc726019de25ac01e7d6098b620e1f36f426a /libs/libcurl/src/hostip.c | |
| parent | 583ab0796b113df6474cfce7416084215cb850e7 (diff) | |
libcurl: update to 8.11.1
Diffstat (limited to 'libs/libcurl/src/hostip.c')
| -rw-r--r-- | libs/libcurl/src/hostip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/libcurl/src/hostip.c b/libs/libcurl/src/hostip.c index 2629492504..151fc7bf9d 100644 --- a/libs/libcurl/src/hostip.c +++ b/libs/libcurl/src/hostip.c @@ -798,7 +798,9 @@ enum resolve_t Curl_resolv(struct Curl_easy *data, return CURLRESOLV_ERROR;
if(strcasecompare(hostname, "localhost") ||
- tailmatch(hostname, ".localhost"))
+ strcasecompare(hostname, "localhost.") ||
+ tailmatch(hostname, ".localhost") ||
+ tailmatch(hostname, ".localhost."))
addr = get_localhost(port, hostname);
#ifndef CURL_DISABLE_DOH
else if(allowDOH && data->set.doh && !ipnum)
|
