{
bool ret = false;
// First check the (sub)domain isn't ignored for NOD purposes
- if (!g_nodDomainWL.check(dname)) {
- // Now check the NODDB (note this is probabilistic so can have FNs/FPs)
- if (g_nodDBp && g_nodDBp->isNewDomain(dname)) {
- if (g_nodLog) {
- // This should probably log to a dedicated log file
- SLOG(g_log << Logger::Notice << "Newly observed domain nod=" << dname << endl,
- nodlogger->info(Logr::Notice, "New domain observed"));
- }
- t_Counters.at(rec::Counter::nodCount)++;
- ret = true;
+ if (g_nodDomainWL.check(dname)) {
+ return ret;
+ }
+ // Now check the NODDB (note this is probabilistic so can have FNs/FPs)
+ if (g_nodDBp && g_nodDBp->isNewDomain(dname)) {
+ if (g_nodLog) {
+ // This should probably log to a dedicated log file
+ SLOG(g_log << Logger::Notice << "Newly observed domain nod=" << dname << endl,
+ nodlogger->info(Logr::Notice, "New domain observed"));
}
+ t_Counters.at(rec::Counter::nodCount)++;
+ ret = true;
}
return ret;
}