Commit 57fe5dfd authored by nanahira's avatar nanahira

reverse

parent 5c5a87bb
......@@ -47,10 +47,10 @@ namespace WindBot.Game
Connection.PacketReceived += OnPacketReceived;
IPAddress target_address;
try {
target_address = IPAddress.Parse(_serverHost);
} catch (System.Exception e) {
IPHostEntry _hostEntry = Dns.GetHostEntry(_serverHost);
target_address = _hostEntry.AddressList[0];
} catch (System.Exception e) {
target_address = IPAddress.Parse(_serverHost);
}
Connection.Connect(target_address, _serverPort);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment