diff --git a/DnsServerCore/Auth/Group.cs b/DnsServerCore/Auth/Group.cs index 6a550290..c154d4b8 100644 --- a/DnsServerCore/Auth/Group.cs +++ b/DnsServerCore/Auth/Group.cs @@ -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() diff --git a/DnsServerCore/Auth/User.cs b/DnsServerCore/Auth/User.cs index 312ec35d..7d9966d4 100644 --- a/DnsServerCore/Auth/User.cs +++ b/DnsServerCore/Auth/User.cs @@ -241,7 +241,7 @@ namespace DnsServerCore.Auth public override int GetHashCode() { - return base.GetHashCode(); + return HashCode.Combine(_username); } public override string ToString()