Skip to content

Commit 8a0384f

Browse files
committed
Added UDP check for cookies
1 parent f07627d commit 8a0384f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DnsServerCore/Dns/DnsServer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,8 @@ private async Task<DnsDatagram> ProcessRequestAsync(DnsDatagram request, IPEndPo
25642564
}
25652565

25662566
// DNS Cookies (RFC 7873)
2567-
if (request.EDNS != null &&
2567+
if (protocol == DnsTransportProtocol.Udp &&
2568+
request.EDNS != null &&
25682569
_cookieValidator != null)
25692570
{
25702571
EDnsCookieOptionData cookie =

0 commit comments

Comments
 (0)