time limit the port forwarding if possible

This commit is contained in:
Matthias Mailänder
2014-06-16 16:42:06 +02:00
parent a8c029f130
commit 1f7b0ad5d4
2 changed files with 20 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ namespace OpenRA.Server
randomSeed = (int)DateTime.Now.ToBinary();
if (Settings.AllowPortForward)
UPnP.ForwardPort();
UPnP.ForwardPort(3600);
foreach (var trait in modData.Manifest.ServerTraits)
serverTraits.Add(modData.ObjectCreator.CreateObject<ServerTrait>(trait));