Added
Link Here
|
0 |
- |
1 |
--- source/network/NetServer.cpp.orig 2024-07-15 21:47:04 UTC |
|
|
2 |
+++ source/network/NetServer.cpp |
3 |
@@ -302,7 +302,11 @@ void CNetServerWorker::SetupUPnP() |
4 |
else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL) |
5 |
#endif |
6 |
{ |
7 |
+#if MINIUPNPC_API_VERSION >= 18 |
8 |
+ ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress), NULL, 0); |
9 |
+#else |
10 |
ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress)); |
11 |
+#endif |
12 |
allocatedUrls = ret != 0; // urls is allocated on non-zero return values |
13 |
} |
14 |
else |