Use the port number from the config instead of hard coded one.

This commit is contained in:
hiker
2016-12-01 09:55:39 +11:00
parent b0294060dc
commit fc5cecceae

View File

@@ -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);