port is token[3]

This commit is contained in:
Tom Early committed 2023-04-10 11:28:02 -07:00
1 parent b3d2a00533
commit 312c8f5a2b
1 file changed
+1 -1
+1 -1
View File
@@ -81,7 +81,7 @@ bool CInterlinkMap::LoadFromFile(const std::string &filename)
int port = 10017;
if (token[3])
{
port = std::atoi(token[2]);
port = std::atoi(token[3]);
if (port < 1024 || port > 49000)
{
std::cout << token[0] << " Port " << port << " is out of range, resetting to 10017." << std::endl;