Skip to content

Commit

Permalink
newer upnpc
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueDragon747 committed Jun 5, 2018
1 parent a88d3c9 commit 1b6aced
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/net.cpp
Expand Up @@ -1081,10 +1081,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;
Expand Down

0 comments on commit 1b6aced

Please sign in to comment.