From 3a4d5709c73fa0495138857f7bdb7a49e9e8a80a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 Jun 2024 18:03:26 +0300 Subject: NETLIBBIND to be able to open UDP external ports --- protocols/Discord/src/voice_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Discord/src') diff --git a/protocols/Discord/src/voice_client.cpp b/protocols/Discord/src/voice_client.cpp index 29b051799f..1e20a93723 100644 --- a/protocols/Discord/src/voice_client.cpp +++ b/protocols/Discord/src/voice_client.cpp @@ -132,8 +132,9 @@ void CDiscordVoiceCall::processStreams(const JSONNode &d) } NETLIBBIND nlb = {}; - nlb.pfnNewConnection = &GetConnection; + nlb.iType = SOCK_DGRAM; // UDP connection nlb.pExtra = this; + nlb.pfnNewConnection = &GetConnection; m_hBind = Netlib_BindPort(ppro->m_hGatewayNetlibUser, &nlb); if (m_hBind == nullptr) { ppro->debugLogA("UDP port binding failed, exiting"); -- cgit v1.2.3