]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: resolve *.localhost to 127.0.0.1/::1
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Aug 2022 09:32:22 +0000 (11:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Aug 2022 12:01:37 +0000 (14:01 +0200)
commitb5c0fe20e370ea2e5791fce4cedb34a71bc784e5
tree8e0e5a8e598d74bec6b517ab92ecee965d5035eb
parent586cfc3c2c542a2d3d9c48b4efc3854527fbdda7
hostip: resolve *.localhost to 127.0.0.1/::1

Following the footsteps of other clients like Firefox/Chrome.  RFC 6761
says clients SHOULD do this.

Add test 389 to verify.

Reported-by: TheKnarf on github
Fixes #9192
Closes #9296
lib/hostip.c
tests/data/Makefile.inc
tests/data/test389 [new file with mode: 0644]