Skip to content
Snippets Groups Projects
Commit b7d005ff authored by rswindell's avatar rswindell
Browse files

Log a notice-level message when adding a new area to the unknown/bad area list.

parent 6816526e
Branches
Tags
No related merge requests found
...@@ -5753,8 +5753,10 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure) ...@@ -5753,8 +5753,10 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure)
} else { } else {
stat->known = false; stat->known = false;
printf("(Unknown) "); printf("(Unknown) ");
if(bad_areas != NULL && strListFind(bad_areas, areatag, /* case_sensitive: */false) < 0) if(bad_areas != NULL && strListFind(bad_areas, areatag, /* case_sensitive: */false) < 0) {
lprintf(LOG_NOTICE, "Adding unknown area (%s) to bad area list: %s", areatag, cfg.badareafile);
strListPush(&bad_areas, areatag); strListPush(&bad_areas, areatag);
}
if(cfg.badecho>=0) { if(cfg.badecho>=0) {
i=cfg.badecho; i=cfg.badecho;
if(cfg.area[i].sub!=INVALID_SUB) if(cfg.area[i].sub!=INVALID_SUB)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment