Browse Source

Merge pull request #6583

9f3e48e add support for miniupnpc api version 14 (Pavel Vasin)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
af9305a7e8
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/net.cpp

6
src/net.cpp

@ -1120,10 +1120,14 @@ void ThreadMapPort()
#ifndef UPNPDISCOVER_SUCCESS #ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */ /* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0); devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
#else #elif MINIUPNPC_API_VERSION < 14
/* miniupnpc 1.6 */ /* miniupnpc 1.6 */
int error = 0; int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error); devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#else
/* miniupnpc 1.9.20150730 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#endif #endif
struct UPNPUrls urls; struct UPNPUrls urls;

Loading…
Cancel
Save