Use the port number from the config instead of hard coded one.
This commit is contained in:
@@ -983,7 +983,8 @@ int handleCmdLine()
|
||||
if (CommandLine::has("--connect-now", &s))
|
||||
{
|
||||
TransportAddress ip(s);
|
||||
TransportAddress me(2130706433/*127.0.0.1*/, 2757);
|
||||
TransportAddress me(2130706433/*127.0.0.1*/,
|
||||
NetworkConfig::get()->getServerDiscoveryPort() );
|
||||
NetworkConfig::get()->setIsLAN();
|
||||
NetworkConfig::get()->setIsServer(false);
|
||||
NetworkConfig::get()->setMyAddress(me);
|
||||
|
||||
Reference in New Issue
Block a user