++iter->second.stats.netmaskMatches;
}
}
+ if (t_remotes) {
+ t_remotes->push_back(conn->d_source);
+ }
if (t_allowFrom && !t_allowFrom->match(&conn->d_mappedSource)) {
if (!g_quiet) {
SLOG(g_log << Logger::Error << "[" << g_multiTasker->getTid() << "] dropping TCP query from " << conn->d_mappedSource.toString() << ", address not matched by allow-from" << endl,
return;
}
- if (t_remotes) {
- t_remotes->push_back(addr);
- }
-
ComboAddress destaddr;
socklen_t len = sizeof(destaddr);
getsockname(newsock, reinterpret_cast<sockaddr*>(&destaddr), &len); // if this fails, we're ok with it NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)