1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

MasterServer sample improved

This commit is contained in:
lidgren
2012-10-19 07:25:34 +00:00
parent 1968ea6cdc
commit 1801432a28
5 changed files with 74 additions and 49 deletions

View File

@@ -23,7 +23,11 @@ namespace MSClient
private void button2_Click(object sender, EventArgs e)
{
string host = comboBox1.SelectedItem.ToString();
if (comboBox1.SelectedItem == null)
return;
var splits = comboBox1.SelectedItem.ToString().Split(' ');
var host = Int64.Parse(splits[0]);
Program.RequestNATIntroduction(host);
}
}