Skip to content

Commit

Permalink
Silenced Stratosphere lab file format
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Sep 18, 2024
1 parent 4455dab commit 56431ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LuaEngineNtop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,12 @@ static int ntop_loadCustomCategoryFile(lua_State *vm) {
}

if (!loaded) {
if (strcmp(line, "ip,score")) /* Silence Stratosphere Lab.txt */
/* Silence Stratosphere Lab.txt (it has 2 possible formatting) */
if (strcmp(line, "ip,score") && strcmp(line, "Number,IP address,Rating")) {
ntop->getTrace()->traceEvent(
TRACE_NORMAL, "Invalid line format %s%s [%s]",
ignorePrivateIPs ? "or private IP " : "", line, path);
}
}
} break;

Expand Down

0 comments on commit 56431ec

Please sign in to comment.