Pārlūkot izejas kodu

Pass port from client to server for ios

nordsoft 2 gadi atpakaļ
vecāks
revīzija
56757bb5c2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      client/CServerHandler.cpp

+ 1 - 1
client/CServerHandler.cpp

@@ -193,7 +193,7 @@ void CServerHandler::startLocalServerAndConnect()
 	}
 #elif defined(SINGLE_PROCESS_APP)
 	boost::condition_variable cond;
-	std::vector<std::string> args{"--uuid=" + uuid};
+	std::vector<std::string> args{"--uuid=" + uuid, "--port=" + boost::lexical_cast<std::string>(getHostPort())};
 	if(settings["session"]["lobby"].Bool() && settings["session"]["host"].Bool())
 	{
 		args.push_back("--lobby=" + settings["session"]["address"].String());