mirror of
https://github.com/nostar/urfd.git
synced 2026-11-08 04:19:39 +00:00
URF default port is 10017
This commit is contained in:
1 parent
0da401b814
commit
385da379cc
2 files changed
+20
-9
No files matched your search
@@ -76,14 +76,14 @@ bool CInterlinkMap::LoadFromFile(const std::string &filename)
|
||||
|
||||
if (token[2])
|
||||
{
|
||||
int port = 17000;
|
||||
int port = 10017;
|
||||
if (token[3])
|
||||
{
|
||||
port = std::atoi(token[2]);
|
||||
if (port < 1024 || port > 49000)
|
||||
{
|
||||
std::cout << token[0] << " Port " << port << " is out of range, resetting to 17000." << std::endl;
|
||||
port = 17000;
|
||||
std::cout << token[0] << " Port " << port << " is out of range, resetting to 10017." << std::endl;
|
||||
port = 10017;
|
||||
}
|
||||
m_InterlinkMap[token[0]] = CInterlinkMapItem(token[1], token[3], (uint16_t)port);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user