port is token[3]

pull/2/head
Tom Early 3 years ago
parent b3d2a00533
commit 312c8f5a2b

@ -81,7 +81,7 @@ bool CInterlinkMap::LoadFromFile(const std::string &filename)
int port = 10017; int port = 10017;
if (token[3]) if (token[3])
{ {
port = std::atoi(token[2]); port = std::atoi(token[3]);
if (port < 1024 || port > 49000) if (port < 1024 || port > 49000)
{ {
std::cout << token[0] << " Port " << port << " is out of range, resetting to 10017." << std::endl; std::cout << token[0] << " Port " << port << " is out of range, resetting to 10017." << std::endl;

Loading…
Cancel
Save

Powered by TurnKey Linux.