1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Userland/Services/LookupServer
Max Wipfli 95d4d36b5c LookupServer: Modernize load_etc_hosts()
This reworks the LookupServer::load_etc_hosts() method to use the
IPv4Address APIs instead of trying to parse an IPv4 address itself.

It also adds a few error checks for invalid entries in /etc/hosts,
trims away leading and trailing whitespace from lines and tries to use
StringView over String.
2021-06-09 17:43:32 +04:30
..
ClientConnection.cpp LookupServer: Turn #defines into enum classes and add formatter 2021-05-10 17:26:17 +02:00
ClientConnection.h Userland: Update IPC calls to use proxies 2021-05-03 21:14:40 +02:00
CMakeLists.txt LookupServer: Implement basic mDNS support :^) 2021-05-05 21:16:17 +02:00
DNSAnswer.cpp LookupServer: Track the receive timestamp for DNS answers 2021-05-10 17:26:17 +02:00
DNSAnswer.h LookupServer: Track the receive timestamp for DNS answers 2021-05-10 17:26:17 +02:00
DNSName.cpp Userland: Migrate from arc4random_uniform() to get_random_uniform() 2021-05-14 22:24:02 +02:00
DNSName.h LookupServer: Implement DNSName::operator==() 2021-05-05 21:16:17 +02:00
DNSPacket.cpp LookupServer: Correct some flags for DNS packets 2021-05-10 17:26:17 +02:00
DNSPacket.h LookupServer: Correct some flags for DNS packets 2021-05-10 17:26:17 +02:00
DNSPacketHeader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DNSQuestion.h LookupServer: Turn #defines into enum classes and add formatter 2021-05-10 17:26:17 +02:00
DNSServer.cpp LookupServer: Turn #defines into enum classes and add formatter 2021-05-10 17:26:17 +02:00
DNSServer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LookupClient.ipc Userland: Use snake case names in .ipc files 2021-05-03 21:14:40 +02:00
LookupServer.cpp LookupServer: Modernize load_etc_hosts() 2021-06-09 17:43:32 +04:30
LookupServer.h LookupServer: Turn #defines into enum classes and add formatter 2021-05-10 17:26:17 +02:00
LookupServer.ipc Userland: Use snake case names in .ipc files 2021-05-03 21:14:40 +02:00
main.cpp Userland: Tighten a *lot* of pledges! :^) 2021-05-13 23:28:40 +02:00
MulticastDNS.cpp LookupServer: Fix missing POSIX includes 2021-05-23 18:10:29 +02:00
MulticastDNS.h LookupServer: Turn #defines into enum classes and add formatter 2021-05-10 17:26:17 +02:00