mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
655a76d62a
Added patch from Larry Hajali for newer versions of miniupnpc. Added documentation, example config, and desktop file, thanks to Christoph Willing. Signed-off-by: Erik Hanson <erik@slackbuilds.org>.
29 lines
885 B
Diff
29 lines
885 B
Diff
From 984e204d7c60f0d0c5cc7d1c3a5daefcd7433f6e Mon Sep 17 00:00:00 2001
|
|
From: acerix <dylan@psilly.com>
|
|
Date: Wed, 7 Oct 2015 20:33:08 -0400
|
|
Subject: [PATCH] apply bitcoin patch for miniupnpc 1.9
|
|
|
|
---
|
|
src/net.cpp | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/net.cpp b/src/net.cpp
|
|
index 279ee4d..f7ea000 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;
|