summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-31 08:33:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-31 15:37:37 +0200
commitc61ca433402876fefef1dab847acda1647b7dab9 (patch)
tree6a51c794c13df41eb8302d5e0f8db85dbd5b30b8 /docs
parent1a0ebf6632f889eedd42e03db9c337e7f029cc21 (diff)
downloadcurl-c61ca433402876fefef1dab847acda1647b7dab9.tar.gz
URL-SYNTAX.md: document the new 'localhost' treatment
Diffstat (limited to 'docs')
-rw-r--r--docs/URL-SYNTAX.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/URL-SYNTAX.md b/docs/URL-SYNTAX.md
index ef4613383..a97eb0d9f 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