Merge pull request #2403 from Mailaender/mono-nat

Use Mono.Nat for UPnP port forwarding.
This commit is contained in:
Matthias Mailänder
2013-04-06 04:50:22 -07:00
13 changed files with 129 additions and 224 deletions

View File

@@ -69,6 +69,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var UPnPCheckbox = panel.Get<CheckboxWidget>("UPNP_CHECKBOX");
UPnPCheckbox.IsChecked = () => allowUPnP;
UPnPCheckbox.OnClick = () => allowUPnP ^= true;
UPnPCheckbox.IsDisabled = () => !Game.Settings.Server.NatDeviceAvailable;
}
void CreateAndJoin()