session bugs fixed, log added

This commit is contained in:
C
2022-07-21 17:12:44 +05:00
parent 81be0c6db8
commit f9fc3dc42d
3 changed files with 89 additions and 27 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ public:
std::vector<uint16_t> ports;
for (auto& s : sessions)
ports.push_back(s.getPort());
std::sort(ports.begin(), ports.end());
std::sort(ports.begin(), ports.end(), [](uint16_t a, uint16_t b) { return a > b; });
return *(ports.begin());
}
};