From: Daniel Stenberg Date: Mon, 31 May 2021 06:33:44 +0000 (+0200) Subject: URL-SYNTAX.md: document the new 'localhost' treatment X-Git-Tag: curl-7_78_0~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c61ca433402876fefef1dab847acda1647b7dab9;p=thirdparty%2Fcurl.git URL-SYNTAX.md: document the new 'localhost' treatment --- diff --git a/docs/URL-SYNTAX.md b/docs/URL-SYNTAX.md index ef4613383b..a97eb0d9ff 100644 --- a/docs/URL-SYNTAX.md +++ b/docs/URL-SYNTAX.md @@ -168,6 +168,15 @@ brackets). For example: http://[2001:1890:1112:1::20]/ +### "localhost" + +Starting in curl 7.77.0, curl will use loopback IP addresses for the name +`localhost`: `127.0.0.1` and `::1`. It will not try to resolve the name using +the resolver functions. + +This is done to make sure the host accessed is truly the localhost - the local +machine. + ### IDNA If curl was built with International Domain Name (IDN) support, it can also