mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
LookupServer: Store DNSName's in HashMap's directly
DNSName can now take care of case conversion when comparing using traits. It still intentionally doesn't implement operator ==; you have to explicitly decide whether you want case-sensitive or case-insensitive comparison. This change makes caches (and /etc/hosts) case-transparent: we will now match domains if they're the same except for the case.
This commit is contained in:
parent
bacbde31f3
commit
e9387e43db
4 changed files with 23 additions and 7 deletions
|
@ -52,8 +52,8 @@ private:
|
|||
|
||||
RefPtr<Core::LocalServer> m_local_server;
|
||||
Vector<String> m_nameservers;
|
||||
HashMap<String, String> m_etc_hosts;
|
||||
HashMap<String, Vector<DNSAnswer>> m_lookup_cache;
|
||||
HashMap<DNSName, String, DNSName::Traits> m_etc_hosts;
|
||||
HashMap<DNSName, Vector<DNSAnswer>, DNSName::Traits> m_lookup_cache;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue