From fd48fe18e478dd5ea3427922f94a6b22087a79dd Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 6 Oct 2012 00:34:08 +0000 Subject: [PATCH] - added new ini option to allow for custom broadcast port for LAN game discovery: BroadcastPort=x where x is the custom port for discovery --- source/glest_game/main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 3cff35b94..218872460 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -3204,6 +3204,8 @@ int glestMain(int argc, char** argv) { Config &config = Config::getInstance(); setupGameItemPaths(argc, argv, &config); + Socket::setBroadCastPort(config.getBool("BroadcastPort",boolToStr(Socket::getBroadCastPort()).c_str())); + Socket::disableNagle = config.getBool("DisableNagle","false"); if(Socket::disableNagle) { printf("*WARNING users wants to disable the socket nagle algorithm.\n");