Pārlūkot izejas kodu

corrected gbudb tool whitelist logic

master
Pete McNeil pirms 8 mēnešiem
vecāks
revīzija
81ea55d5fb
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5
    5
      GBUDBTool/main.cpp

+ 5
- 5
GBUDBTool/main.cpp Parādīt failu

@@ -95,11 +95,11 @@ class Reporter : public GBUdbOperator {
Reporter(Configuration Config) : myConfig(Config) {}
GBUdbRecord& operator()(unsigned int IP, GBUdbRecord& R) {
bool goodConfidence = (myConfig.Confidence <= R.Confidence());
bool goodProbability = false;
if(myConfig.findBlack) goodProbability = (myConfig.Probability <= R.Probability());
else goodProbability = (myConfig.Probability <= R.Probability());
if(goodProbability && goodConfidence) {
bool requiredConfidence = (myConfig.Confidence <= R.Confidence());
bool requiredProbability = false;
if(myConfig.findBlack) requiredConfidence = (myConfig.Probability <= R.Probability());
else requiredProbability = (myConfig.Probability >= R.Probability());
if(requiredProbability && requiredConfidence) {
std::cout << toIP4String(IP);
if(myConfig.showDetails) {
std::cout << "\t"

Notiek ielāde…
Atcelt
Saglabāt