Skip to content

Commit

Permalink
URL-SYNTAX.md: document the new 'localhost' treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed May 11, 2021
1 parent fab6d74 commit 2662b69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/URL-SYNTAX.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2662b69

Please sign in to comment.