minor code refactoring changes.

This commit is contained in:
Shreyas Zare
2024-06-15 15:03:59 +05:30
parent e7194cbf62
commit 39a6bc36f0
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2024 Shreyas Zare (shreyas@technitium.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -80,7 +80,7 @@ namespace DnsServerCore.Auth
public override int GetHashCode()
{
return base.GetHashCode();
return HashCode.Combine(_name);
}
public override string ToString()

View File

@@ -241,7 +241,7 @@ namespace DnsServerCore.Auth
public override int GetHashCode()
{
return base.GetHashCode();
return HashCode.Combine(_username);
}
public override string ToString()