Add comments for server IP parsing

Dot is used for determining of the given IP is a server alias or a
direct ip address or domain name. See #83
This commit is contained in:
ORelio 2015-07-05 20:53:35 +02:00
parent f076e1f512
commit f5a67090c2

View file

@ -468,12 +468,14 @@ namespace MinecraftClient
if (host == "localhost" || host.Contains('.'))
{
//Server IP (IP or domain names contains at least a dot)
ServerIP = host;
ServerPort = port;
return true;
}
else if (Servers.ContainsKey(server))
{
//Server Alias (if no dot then treat the server as an alias)
ServerIP = Servers[server].Key;
ServerPort = Servers[server].Value;
return true;