瀏覽代碼

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"});
     }
 }