Permalink
Browse files

Merge pull request #6583

9f3e48e add support for miniupnpc api version 14 (Pavel Vasin)
  • Loading branch information...
laanwj committed Aug 31, 2015
2 parents f4d88c4 + 9f3e48e commit af9305a7e8a40014508fb66a22ae95e8afe142c6
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/net.cpp
View
@@ -1120,10 +1120,14 @@ void ThreadMapPort()
#ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
-#else
+#elif MINIUPNPC_API_VERSION < 14
/* miniupnpc 1.6 */
int error = 0;
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
struct UPNPUrls urls;

0 comments on commit af9305a

Please sign in to comment.