From 283a31b7664c270b6f6cd2b5917de60004fb1f63 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 14 Sep 2024 16:24:06 +0530 Subject: [PATCH] minor code refactoring changes. --- Apps/NxDomainApp/App.cs | 2 +- Apps/QueryLogsSqliteApp/App.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Apps/NxDomainApp/App.cs b/Apps/NxDomainApp/App.cs index 9e5d485e..b230a97e 100644 --- a/Apps/NxDomainApp/App.cs +++ b/Apps/NxDomainApp/App.cs @@ -65,7 +65,7 @@ namespace NxDomain private bool IsZoneBlocked(string domain, out string blockedDomain) { - domain = domain.ToLower(); + domain = domain.ToLowerInvariant(); do { diff --git a/Apps/QueryLogsSqliteApp/App.cs b/Apps/QueryLogsSqliteApp/App.cs index 5f21c074..d7fc0414 100644 --- a/Apps/QueryLogsSqliteApp/App.cs +++ b/Apps/QueryLogsSqliteApp/App.cs @@ -215,7 +215,7 @@ namespace QueryLogsSqlite { DnsQuestionRecord query = log.Request.Question[0]; - paramQname.Value = query.Name.ToLower(); + paramQname.Value = query.Name.ToLowerInvariant(); paramQtype.Value = (int)query.Type; paramQclass.Value = (int)query.Class; } @@ -452,7 +452,7 @@ CREATE TABLE IF NOT EXISTS dns_logs pageNumber = 1; if (qname is not null) - qname = qname.ToLower(); + qname = qname.ToLowerInvariant(); string whereClause = string.Empty;