diff options
author | Pavel Vasin <pavel@vasin.nl> | 2015-08-23 23:53:49 +0300 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2015-09-22 00:43:15 +0000 |
commit | 21c406eda0e936d8575715068b050ff9124e6b2e (patch) | |
tree | ea311bc27be45eb5afe7c1db7070dbdb6ba7784b | |
parent | 13bd5a75b5b9b7b91e9bd40be1bcc394154107bd (diff) | |
download | bitcoin-21c406eda0e936d8575715068b050ff9124e6b2e.tar.xz |
add support for miniupnpc api version 14
The value of new arg ttl is set to 2 as it's recommended default.
-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 d42c28141a..57efa3f79d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -995,10 +995,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; |