static void apiSaveACL(const NetmaskGroup& nmg)
{
vector<string> vec;
- g_ACL.getLocal()->toStringVector(&vec);
+ nmg.toStringVector(&vec);
string acl;
for(const auto& s : vec) {
vinfolog("Got an error in UDP responder thread while parsing a response from %s, id %d: %s", dss->remote.toStringWithPort(), queryId, e.what());
}
}
- return 0;
+ return nullptr;
}
catch(const std::exception& e)
{
errlog("UDP responder thread died because of exception: %s", e.what());
- return 0;
+ return nullptr;
}
catch(const PDNSException& e)
{
errlog("UDP responder thread died because of PowerDNS exception: %s", e.reason);
- return 0;
+ return nullptr;
}
catch(...)
{
errlog("UDP responder thread died because of an exception: %s", "unknown");
- return 0;
+ return nullptr;
}
bool DownstreamState::reconnect()
// ponder pruning g_dynblocks of expired entries here
}
- return 0;
+ return nullptr;
}
static void* secPollThread()
}
}
}
- return 0;
+ return nullptr;
}
static void bindAny(int af, int sock)
{
}
- BasicQPSLimiter(unsigned int rate, unsigned int burst): d_tokens(burst)
+ BasicQPSLimiter(unsigned int burst): d_tokens(burst)
{
d_prev.start();
}
{
}
- QPSLimiter(unsigned int rate, unsigned int burst): BasicQPSLimiter(rate, burst), d_rate(rate), d_burst(burst), d_passthrough(false)
+ QPSLimiter(unsigned int rate, unsigned int burst): BasicQPSLimiter(burst), d_rate(rate), d_burst(burst), d_passthrough(false)
{
d_prev.start();
}
d_ticketKeys.addKey(newKey);
if (d_ticketsKeyRotationDelay > 0) {
- d_ticketsKeyNextRotation = time(nullptr) + d_ticketsKeyRotationDelay;
+ d_ticketsKeyNextRotation = now + d_ticketsKeyRotationDelay;
}
}
auto newKey = std::make_shared<GnuTLSTicketsKey>();
d_ticketsKey = newKey;
if (d_ticketsKeyRotationDelay > 0) {
- d_ticketsKeyNextRotation = time(nullptr) + d_ticketsKeyRotationDelay;
+ d_ticketsKeyNextRotation = now + d_ticketsKeyRotationDelay;
}
}