mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
More dnsbl printing
This commit is contained in:
parent
00d941a309
commit
922e32be0c
|
@ -2877,6 +2877,12 @@ int CServer::Run()
|
|||
{
|
||||
// entry not found -> whitelisted
|
||||
m_aClients[ClientId].m_DnsblState = CClient::DNSBL_STATE_WHITELISTED;
|
||||
|
||||
char aAddrStr[NETADDR_MAXSTRSIZE];
|
||||
net_addr_str(m_NetServer.ClientAddr(ClientId), aAddrStr, sizeof(aAddrStr), true);
|
||||
|
||||
str_format(aBuf, sizeof(aBuf), "ClientId=%d addr=<{%s}> secure=%s whitelisted", ClientId, aAddrStr, m_NetServer.HasSecurityToken(ClientId) ? "yes" : "no");
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "dnsbl", aBuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2888,8 +2894,7 @@ int CServer::Run()
|
|||
net_addr_str(m_NetServer.ClientAddr(ClientId), aAddrStr, sizeof(aAddrStr), true);
|
||||
|
||||
str_format(aBuf, sizeof(aBuf), "ClientId=%d addr=<{%s}> secure=%s blacklisted", ClientId, aAddrStr, m_NetServer.HasSecurityToken(ClientId) ? "yes" : "no");
|
||||
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "dnsbl", aBuf);
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "dnsbl", aBuf);
|
||||
|
||||
if(Config()->m_SvDnsblBan)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue