--- modules/upnp/upnp.cpp 2023-09-25 04:26:39 +++ modules/upnp/upnp.cpp 2024-08-01 09:29:35 @@ -145,7 +145,11 @@ } char addr[16]; +#if (MINIUPNPC_API_VERSION >= 18) + int i = UPNP_GetValidIGD(devlist, urls, &data, (char *)&addr, 16, nullptr, 0); +#else int i = UPNP_GetValidIGD(devlist, urls, &data, (char *)&addr, 16); +#endif if (i != 1) { FreeUPNPUrls(urls);