mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-04-26 22:41:43 +00:00
DnsServer: fixed bug in ProcessBlockedQuery() caused by missing else condition check which would cause the server to return Refused response when block zone is not empty and block list zone is empty.
This commit is contained in:
@@ -1499,12 +1499,19 @@ namespace DnsServerCore.Dns
|
||||
{
|
||||
//domain not blocked in blocked zone
|
||||
if (_blockListZoneManager.TotalZonesBlocked > 0)
|
||||
{
|
||||
response = _blockListZoneManager.Query(request); //check in block list zone
|
||||
|
||||
if (response == null)
|
||||
return null; //domain not blocked in block list zone
|
||||
if (response == null)
|
||||
return null; //domain not blocked in block list zone
|
||||
|
||||
//domain is blocked in block list zone
|
||||
//domain is blocked in block list zone
|
||||
}
|
||||
else
|
||||
{
|
||||
//domain not blocked in block list zone
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user