Skip to content

Commit

Permalink
Fix conf parsing for detailed packets
Browse files Browse the repository at this point in the history
  • Loading branch information
adepierre committed May 7, 2024
1 parent 2e7075f commit 177da60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sniffcraft/src/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ void Logger::LoadPacketsFromJson(const Json::Value& value, const ConnectionState
const int packet_id = GetIdFromName(val.get<std::string>(), connection_state, true);
if (packet_id > -1)
{
ignored_packets[{connection_state, Endpoint::Server}].insert(packet_id);
detailed_packets[{connection_state, Endpoint::Server}].insert(packet_id);
}
}
}
Expand All @@ -745,7 +745,7 @@ void Logger::LoadPacketsFromJson(const Json::Value& value, const ConnectionState
const int packet_id = GetIdFromName(val.get<std::string>(), connection_state, false);
if (packet_id > -1)
{
ignored_packets[{connection_state, Endpoint::Client}].insert(packet_id);
detailed_packets[{connection_state, Endpoint::Client}].insert(packet_id);
}
}
}
Expand Down

0 comments on commit 177da60

Please sign in to comment.