From e36fb906da7f489b79440d156f75697af4bf51d4 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 12 Nov 2022 17:19:43 +0530 Subject: [PATCH] DnsServer: updated PostProcessQueryAsync() to return response without EDNS when request does not have EDNS. --- DnsServerCore/Dns/DnsServer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DnsServerCore/Dns/DnsServer.cs b/DnsServerCore/Dns/DnsServer.cs index a0d220a1..a233f4f9 100644 --- a/DnsServerCore/Dns/DnsServer.cs +++ b/DnsServerCore/Dns/DnsServer.cs @@ -1099,7 +1099,12 @@ namespace DnsServerCore.Dns } if (request.EDNS is null) + { + if (response.EDNS is not null) + response = response.CloneWithoutEDns(); + return response; + } if (response.EDNS is not null) return response;