diff options
| author | Tom Marshall <tdm.code@gmail.com> | 2020-01-16 13:07:04 -0800 |
|---|---|---|
| committer | Tom Marshall <tdm.code@gmail.com> | 2020-11-27 21:11:10 +0100 |
| commit | e80e029ff156a42b1131c90e5624c7b78588171f (patch) | |
| tree | d6befe969fe288d4f344e90c5dd8334d77110cef /libc/stdio/stdio_ext.cpp | |
| parent | 6bedb25751933b73083705d227bf472c28d67b89 (diff) | |
bionic: Support wildcards in cached hosts file
If an exact name is not found in the hosts file and the host name
contains at least one dot, search for entries of the form "*.domain",
where domain is the portion of the host name after the first dot. If
that is not found, repeat using the domain.
Example: a.b.c.example.com would search for the following in turn:
a.b.c.example.com
*.b.c.example.com
*.c.example.com
*.example.com
*.com
Change-Id: I4b0bb81699151d5b371850daebf785e35ec9b180
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions
