mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
LookupServer: Implement DNSName::operator==()
This commit is contained in:
parent
78459b92d5
commit
fd76e07399
2 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,11 @@ void DNSName::randomize_case()
|
|||
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)
|
||||
{
|
||||
auto parts = name.as_string().split_view('.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue