summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/voice_client.cpp3
-rw-r--r--protocols/JabberG/src/jabber_byte.cpp1
-rw-r--r--protocols/JabberG/src/jabber_file.cpp1
3 files changed, 2 insertions, 3 deletions
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");
diff --git a/protocols/JabberG/src/jabber_byte.cpp b/protocols/JabberG/src/jabber_byte.cpp
index 7f15a27e42..1cb98c1da1 100644
--- a/protocols/JabberG/src/jabber_byte.cpp
+++ b/protocols/JabberG/src/jabber_byte.cpp
@@ -199,7 +199,6 @@ void CJabberProto::ByteSendThread(JABBER_BYTE_TRANSFER *jbt)
NETLIBBIND nlb = {};
nlb.pfnNewConnection = JabberByteSendConnection;
nlb.pExtra = this;
- nlb.wPort = 0; // Use user-specified incoming port ranges, if available
jbt->hConn = Netlib_BindPort(m_hNetlibUser, &nlb);
if (jbt->hConn == nullptr) {
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp
index 2694d49fa4..5366cbd813 100644
--- a/protocols/JabberG/src/jabber_file.cpp
+++ b/protocols/JabberG/src/jabber_file.cpp
@@ -395,7 +395,6 @@ void __cdecl CJabberProto::FileServerThread(filetransfer *ft)
NETLIBBIND nlb = {};
nlb.pfnNewConnection = JabberFileServerConnection;
nlb.pExtra = this;
- nlb.wPort = 0; // Use user-specified incoming port ranges, if available
info.s = (HNETLIBCONN)Netlib_BindPort(m_hNetlibUser, &nlb);
if (info.s == nullptr) {