summarylogtreecommitdiffstats
path: root/upnp-1.9.patch
diff options
context:
space:
mode:
authorLoïc Guitaut2015-11-16 11:50:55 +0100
committerLoïc Guitaut2015-11-16 11:50:55 +0100
commit87e1353780a10015ce4f7cabb5d1fb1f90a453ac (patch)
tree276840b3fcd34564d6d329bc2d82f4ed07929d19 /upnp-1.9.patch
parent721ccbe5de2ec7a018082fe80e39bc3eaae11793 (diff)
downloadaur-87e1353780a10015ce4f7cabb5d1fb1f90a453ac.tar.gz
Add UPnP patch
Diffstat (limited to 'upnp-1.9.patch')
-rw-r--r--upnp-1.9.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/upnp-1.9.patch b/upnp-1.9.patch
new file mode 100644
index 000000000000..42e6cf18e8d0
--- /dev/null
+++ b/upnp-1.9.patch
@@ -0,0 +1,19 @@
+diff -Naur a/src/net.cpp b/src/net.cpp
+--- a/src/net.cpp 2015-06-15 10:51:30.000000000 +0200
++++ b/src/net.cpp 2015-10-03 16:15:10.441886309 +0200
+@@ -1020,10 +1020,14 @@
+ #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;