aboutsummaryrefslogtreecommitdiff
path: root/src/mapport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapport.cpp')
-rw-r--r--src/mapport.cpp5
1 files changed, 4 insertions, 1 deletions
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) {