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/JabberG/src/jabber_byte.cpp | 1 - protocols/JabberG/src/jabber_file.cpp | 1 - 2 files changed, 2 deletions(-) (limited to 'protocols/JabberG/src') 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) { -- cgit v1.2.3