3
0
Преглед на файлове

services that can't be found are now listed unavailable

Stefano Acquaviti преди 6 години
родител
ревизия
b0f875b054
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      code_boost/src/cxx/statistics_db.cpp

+ 2 - 2
code_boost/src/cxx/statistics_db.cpp

@@ -238,7 +238,7 @@ void statistics_db::writeStatisticsPorts(std::unordered_map<ipAddress_inOut_port
             ipAddress_inOut_port e = it->first;
 
             std::string portService = portServices[e.portNumber];
-            if(portService.empty()) {portService = "unknown";}
+            if(portService.empty()) {portService = "unavailable";}
 
             query.bind(1, e.ipAddress);
             query.bind(2, e.trafficDirection);
@@ -502,7 +502,7 @@ void statistics_db::readPortServicesFromNmap()
     else
     {
         std::cerr << "WARNING: " << nmapPath << " could not be opened! PortServices can't be read!" << std::endl;
-        portServices.insert({0, "unknown"});
+        portServices.insert({0, "unavailable"});
     }
 }