mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #617 from east/dnsblfix2
dnsbl fix: HostLookup check result properly
This commit is contained in:
commit
33cb627772
|
@ -1727,7 +1727,7 @@ int CServer::Run()
|
||||||
m_aClients[c].m_DnsblLookup.m_Job.Status() == CJob::STATE_DONE)
|
m_aClients[c].m_DnsblLookup.m_Job.Status() == CJob::STATE_DONE)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (m_aClients[c].m_DnsblLookup.m_Addr.type == NETTYPE_INVALID)
|
if (m_aClients[c].m_DnsblLookup.m_Job.Result() != 0)
|
||||||
{
|
{
|
||||||
// entry not found -> whitelisted
|
// entry not found -> whitelisted
|
||||||
m_aClients[c].m_DnsblState = CClient::DNSBL_STATE_WHITELISTED;
|
m_aClients[c].m_DnsblState = CClient::DNSBL_STATE_WHITELISTED;
|
||||||
|
|
Loading…
Reference in a new issue