Remove voice gateway port stripping (#3173)
This commit is contained in:
@@ -1586,14 +1586,7 @@ public partial class DiscordSocketClient
|
|||||||
|
|
||||||
if (isCached)
|
if (isCached)
|
||||||
{
|
{
|
||||||
var endpoint = data.Endpoint;
|
var _ = guild.FinishConnectAudio(data.Endpoint, data.Token).ConfigureAwait(false);
|
||||||
|
|
||||||
//Only strip out the port if the endpoint contains it
|
|
||||||
var portBegin = endpoint.LastIndexOf(':');
|
|
||||||
if (portBegin > 0)
|
|
||||||
endpoint = endpoint.Substring(0, portBegin);
|
|
||||||
|
|
||||||
var _ = guild.FinishConnectAudio(endpoint, data.Token).ConfigureAwait(false);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user