mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
LookupServer: Make DNSName::operator== ignore case
This commit is contained in:
parent
95d4d36b5c
commit
12feb79cef
2 changed files with 1 additions and 6 deletions
|
@ -75,11 +75,6 @@ void DNSName::randomize_case()
|
||||||
m_name = builder.to_string();
|
m_name = builder.to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DNSName::operator==(const DNSName& other) const
|
|
||||||
{
|
|
||||||
return as_string() == other.as_string();
|
|
||||||
}
|
|
||||||
|
|
||||||
OutputStream& operator<<(OutputStream& stream, const DNSName& name)
|
OutputStream& operator<<(OutputStream& stream, const DNSName& name)
|
||||||
{
|
{
|
||||||
auto parts = name.as_string().split_view('.');
|
auto parts = name.as_string().split_view('.');
|
||||||
|
|
|
@ -23,7 +23,7 @@ public:
|
||||||
|
|
||||||
void randomize_case();
|
void randomize_case();
|
||||||
|
|
||||||
bool operator==(const DNSName&) const;
|
bool operator==(const DNSName& other) const { return Traits::equals(*this, other); }
|
||||||
|
|
||||||
class Traits : public AK::Traits<DNSName> {
|
class Traits : public AK::Traits<DNSName> {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue