mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-11 04:03:05 +00:00
16 lines
366 B
Diff
16 lines
366 B
Diff
--- a/src/net.cpp
|
|
+++ b/src/net.cpp
|
|
@@ -1485,7 +1485,12 @@
|
|
struct IGDdatas data;
|
|
int r;
|
|
|
|
+#if (MINIUPNPC_API_VERSION >= 18)
|
|
+ r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), nullptr, 0);
|
|
+#else
|
|
r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
|
|
+#endif
|
|
+
|
|
if (r == 1)
|
|
{
|
|
if (fDiscover) {
|