[curl/curl] e3b489: hostip: make 'localhost' return fixed values
Daniel Stenberg <[email protected]> Sun, 30 May 2021 23:34:25 -0700
| Newsgroups | gmane.comp.web.curl.cvs |
|---|---|
| Message-ID | <curl/curl/push/refs/heads/bagder/fixed-localhost/[email protected]> |
Branch: refs/heads/bagder/fixed-localhost
Home: https://github.com/curl/curl
Commit: e3b489ae6bf7c6d38737989e710c61dcfac140ea
https://github.com/curl/curl/commit/e3b489ae6bf7c6d38737989e710c61dcfac140ea
Author: Daniel Stenberg <[email protected]>
Date: 2021-05-31 (Mon, 31 May 2021)
Changed paths:
M lib/hostip.c
Log Message:
-----------
hostip: make 'localhost' return fixed values
Resolving the case insensitive host name 'localhost' now returns the
addresses 127.0.0.1 and (if IPv6 is enabled) ::1 without using any
resolver.
This removes the risk that users accidentally resolves 'localhost' to
something else. By making sure 'localhost' is always local, we can
assume a "secure context" for such transfers (for cookies etc).
Commit: c7997d69b9e58c3df51260e90f74f1e9c152371e
https://github.com/curl/curl/commit/c7997d69b9e58c3df51260e90f74f1e9c152371e
Author: Daniel Stenberg <[email protected]>
Date: 2021-05-31 (Mon, 31 May 2021)
Changed paths:
M docs/URL-SYNTAX.md
Log Message:
-----------
URL-SYNTAX.md: document the new 'localhost' treatment
Compare: https://github.com/curl/curl/compare/2662b6976c3f...c7997d69b9e5
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits