aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/release-notes.md2
-rw-r--r--src/mapport.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/release-notes.md b/doc/release-notes.md
index 27b8172b1b..92194a9a2d 100644
--- a/doc/release-notes.md
+++ b/doc/release-notes.md
@@ -61,6 +61,7 @@ Notable changes
- #29747: depends: fix mingw-w64 Qt DEBUG=1 build
- #29985: depends: Fix build of Qt for 32-bit platforms with recent glibc
- #30151: depends: Fetch miniupnpc sources from an alternative website
+- #30283: upnp: fix build with miniupnpc 2.2.8
### Misc
@@ -76,6 +77,7 @@ Thanks to everyone who directly contributed to this release:
- Antoine Poinsot
- Ava Chow
+- Cory Fields
- dergoegge
- fanquake
- glozow
diff --git a/src/mapport.cpp b/src/mapport.cpp
index 08b365db4b..f58d8ced15 100644
--- a/src/mapport.cpp
+++ b/src/mapport.cpp
@@ -163,8 +163,11 @@ static bool ProcessUpnp()
struct UPNPUrls urls;
struct IGDdatas data;
int r;
-
+#if MINIUPNPC_API_VERSION <= 17
r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
+#else
+ r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), nullptr, 0);
+#endif
if (r == 1)
{
if (fDiscover) {