mirror of
https://github.com/nostar/urfd.git
synced 2026-11-08 04:19:39 +00:00
port is token[3]
This commit is contained in:
1 parent
b3d2a00533
commit
312c8f5a2b
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user