From f3d2420f3d7e4169db4275d59ba755bf4e61510c Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 9 Jul 2023 15:54:58 +0530 Subject: [PATCH] GeoContinentApp: fixed issue with wildcard records. --- Apps/GeoContinentApp/Address.cs | 2 +- Apps/GeoContinentApp/CNAME.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Apps/GeoContinentApp/Address.cs b/Apps/GeoContinentApp/Address.cs index b718ee5a..8574299e 100644 --- a/Apps/GeoContinentApp/Address.cs +++ b/Apps/GeoContinentApp/Address.cs @@ -80,7 +80,7 @@ namespace GeoContinent { DnsQuestionRecord question = request.Question[0]; - if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase)) + if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase) && !appRecordName.StartsWith("*.", StringComparison.OrdinalIgnoreCase)) return Task.FromResult(null); switch (question.Type) diff --git a/Apps/GeoContinentApp/CNAME.cs b/Apps/GeoContinentApp/CNAME.cs index 325f8cff..d3a075ae 100644 --- a/Apps/GeoContinentApp/CNAME.cs +++ b/Apps/GeoContinentApp/CNAME.cs @@ -78,7 +78,7 @@ namespace GeoContinent { DnsQuestionRecord question = request.Question[0]; - if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase)) + if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase) && !appRecordName.StartsWith("*.", StringComparison.OrdinalIgnoreCase)) return Task.FromResult(null); using JsonDocument jsonDocument = JsonDocument.Parse(appRecordData);