mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 08:45:32 +00:00
AdvancedForwarding: Updated ProcessRequestAsync() to check if request has RD flag set before forwarding.
This commit is contained in:
@@ -164,7 +164,7 @@ namespace AdvancedForwarding
|
||||
|
||||
public Task<DnsDatagram> ProcessRequestAsync(DnsDatagram request, IPEndPoint remoteEP, DnsTransportProtocol protocol, bool isRecursionAllowed)
|
||||
{
|
||||
if (!_enableForwarding)
|
||||
if (!_enableForwarding || !request.RecursionDesired)
|
||||
return Task.FromResult<DnsDatagram>(null);
|
||||
|
||||
IPAddress remoteIP = remoteEP.Address;
|
||||
|
||||
Reference in New Issue
Block a user