1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/net.cpp b/src/net.cpp
index 1a0bee8c51..a9d9ce7ee8 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1637,7 +1637,11 @@ static void ThreadMapPort()
struct IGDdatas data;
int r;
- r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
+ #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) {
|