Skip to content

Commit

Permalink
Merge pull request #7 from antoinemineau/miniupnpc
Browse files Browse the repository at this point in the history
bitcoin patch for miniupnpc > 1.6
  • Loading branch information
OBAViJEST authored Sep 10, 2017
2 parents 91d431a + 6a50c99 commit a6bc6c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1167,10 +1167,14 @@ void ThreadMapPort2(void* parg)
#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.6 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#endif

struct UPNPUrls urls;
Expand Down

0 comments on commit a6bc6c7

Please sign in to comment.