Browse Source

I guess Mono doesn't support AllowNatTraversal?

tags/docs-0.9
Brandon Smith 9 years ago
parent
commit
4e29ff1ae6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/DiscordVoiceSocket.cs

+ 2
- 0
src/Discord.Net/DiscordVoiceSocket.cs View File

@@ -63,7 +63,9 @@ namespace Discord
protected override void OnConnect()
{
_udp = new UdpClient(new IPEndPoint(IPAddress.Any, 0));
#if !DNX451
_udp.AllowNatTraversal(true);
#endif
_isReady = false;
_isClearing = false;
}


Loading…
Cancel
Save