diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-13 18:03:26 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-13 18:03:26 +0300 |
commit | 3a4d5709c73fa0495138857f7bdb7a49e9e8a80a (patch) | |
tree | d29499ee8454a6c795475a18bf35cd7d09696885 /protocols/JabberG/src | |
parent | 004f3d1f49c54bc62743a838161ac157ffc37e41 (diff) |
NETLIBBIND to be able to open UDP external ports
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_byte.cpp | 1 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
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) {
|