Bind skirmish servers to a random available port

This commit is contained in:
Paul Chote
2011-05-23 19:04:41 +12:00
parent a288c5df15
commit 124f19f00b
4 changed files with 23 additions and 30 deletions

View File

@@ -22,9 +22,8 @@ namespace OpenRA.GameRules
public class ServerSettings
{
public string Name = "OpenRA Game";
public int LoopbackPort = 1234; // Port used for soloplay servers
public int ListenPort = 1234; // Port that we listen on
public int ExternalPort = 1234; // Router port that the master server forwards people to
public int ListenPort = 1234;
public int ExternalPort = 1234;
public bool AdvertiseOnline = true;
public string MasterServer = "http://master.open-ra.org/";
public bool AllowCheats = false;
@@ -34,7 +33,6 @@ namespace OpenRA.GameRules
public ServerSettings(ServerSettings other)
{
Name = other.Name;
LoopbackPort = other.LoopbackPort;
ListenPort = other.ListenPort;
ExternalPort = other.ExternalPort;
AdvertiseOnline = other.AdvertiseOnline;