From 39a6bc36f0f3b35f0fcc7995657f42b2efaf1ccc Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 15 Jun 2024 15:03:59 +0530 Subject: [PATCH] minor code refactoring changes. --- DnsServerCore/Auth/Group.cs | 4 ++-- DnsServerCore/Auth/User.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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()