transmission/transmission-4.0.6-miniupnpc-2.2.8.patch

12 lines
740 B
Diff
Raw Permalink Normal View History

--- transmission-4.0.6/libtransmission/port-forwarding-upnp.cc.orig 2024-06-26 21:30:48.914014308 +0200
+++ transmission-4.0.6/libtransmission/port-forwarding-upnp.cc 2024-06-26 21:25:58.681222830 +0200
@@ -275,7 +275,7 @@
FreeUPNPUrls(&handle->urls);
auto lanaddr = std::array<char, TR_ADDRSTRLEN>{};
- if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1) ==
+ if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1, NULL, 0) ==
UPNP_IGD_VALID_CONNECTED)
{
tr_logAddInfo(fmt::format(_("Found Internet Gateway Device '{url}'"), fmt::arg("url", handle->urls.controlURL)));