Skip to content
Permalink
Browse files

Update net.cpp

  • Loading branch information...
prjcoin committed Mar 29, 2018
1 parent 0cd3a03 commit b0b2cbce7aeef2b6a213906c30dacd418785151c
Showing with 11 additions and 7 deletions.
  1. +11 −7 src/net.cpp
@@ -1107,15 +1107,19 @@ void ThreadMapPort2(void* parg)
char lanaddr[64];

#ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
/* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
#elif MINIUPNPC_API_VERSION < 14
/* miniupnpc 1.6 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#else
/* miniupnpc 1.6 */
/* miniupnpc > 1.6 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#endif

struct UPNPUrls urls;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#endif
struct UPNPUrls urls;
struct IGDdatas data;
int r;

0 comments on commit b0b2cbc

Please sign in to comment.
You can’t perform that action at this time.