Fixed incoming audio, removed nameresolution dep.

This commit is contained in:
RogueException
2017-04-01 12:59:06 -03:00
parent 27d6f4159d
commit 3e988c7549
7 changed files with 11 additions and 13 deletions

View File

@@ -89,10 +89,9 @@ namespace Discord.Net.Udp
}
}
public void SetDestination(string host, int port)
public void SetDestination(string ip, int port)
{
var entry = Dns.GetHostEntryAsync(host).GetAwaiter().GetResult();
_destination = new IPEndPoint(entry.AddressList[0], port);
_destination = new IPEndPoint(IPAddress.Parse(ip), port);
}
public void SetCancelToken(CancellationToken cancelToken)
{