diff options
| author | acerix <[email protected]> | 2015-10-07 20:33:08 -0400 |
|---|---|---|
| committer | acerix <[email protected]> | 2015-10-12 11:35:15 -0400 |
| commit | 984e204d7c60f0d0c5cc7d1c3a5daefcd7433f6e (patch) | |
| tree | 25138bcc2d9066ffc0b327041da1c61a1a560a66 | |
| parent | Merge pull request #1191 from langerhans/1.8.3-releaseprep (diff) | |
| download | discoin-984e204d7c60f0d0c5cc7d1c3a5daefcd7433f6e.tar.xz discoin-984e204d7c60f0d0c5cc7d1c3a5daefcd7433f6e.zip | |
apply bitcoin patch for miniupnpc 1.9
| -rw-r--r-- | src/net.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 279ee4d76..f7ea00051 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1109,10 +1109,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; |