mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 01:23:35 +02:00
- added new ini option to allow for custom broadcast port for LAN game discovery:
BroadcastPort=x where x is the custom port for discovery
This commit is contained in:
@@ -3204,6 +3204,8 @@ int glestMain(int argc, char** argv) {
|
|||||||
Config &config = Config::getInstance();
|
Config &config = Config::getInstance();
|
||||||
setupGameItemPaths(argc, argv, &config);
|
setupGameItemPaths(argc, argv, &config);
|
||||||
|
|
||||||
|
Socket::setBroadCastPort(config.getBool("BroadcastPort",boolToStr(Socket::getBroadCastPort()).c_str()));
|
||||||
|
|
||||||
Socket::disableNagle = config.getBool("DisableNagle","false");
|
Socket::disableNagle = config.getBool("DisableNagle","false");
|
||||||
if(Socket::disableNagle) {
|
if(Socket::disableNagle) {
|
||||||
printf("*WARNING users wants to disable the socket nagle algorithm.\n");
|
printf("*WARNING users wants to disable the socket nagle algorithm.\n");
|
||||||
|
Reference in New Issue
Block a user