mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
bump miniupnpc to 2.2.8 (#6907)
* bump miniupnpc to 2.2.8 * Avoid build error "ln: include/miniupnpc/.: Operation not permitted"
This commit is contained in:
@@ -3102,7 +3102,7 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "cd third-party/miniupnp/miniupnpc\nln -sf . include/miniupnpc\n";
|
||||
shellScript = "cd third-party/miniupnp/miniupnpc\nln -snf . include/miniupnpc\n";
|
||||
};
|
||||
C12F197E1E1AE6D50005E93F /* ShellScript */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
|
||||
@@ -261,8 +261,13 @@ tr_port_forwarding_state tr_upnpPulse(
|
||||
|
||||
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) ==
|
||||
UPNP_IGD_VALID_CONNECTED)
|
||||
if (
|
||||
#if (MINIUPNPC_API_VERSION >= 18)
|
||||
UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1, nullptr, 0)
|
||||
#else
|
||||
UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1)
|
||||
#endif
|
||||
== UPNP_IGD_VALID_CONNECTED)
|
||||
{
|
||||
tr_logAddInfo(fmt::format(_("Found Internet Gateway Device '{url}'"), fmt::arg("url", handle->urls.controlURL)));
|
||||
tr_logAddInfo(fmt::format(_("Local Address is '{address}'"), fmt::arg("address", lanaddr.data())));
|
||||
|
||||
2
third-party/miniupnp
vendored
2
third-party/miniupnp
vendored
Submodule third-party/miniupnp updated: 7f189988a0...b55145ec09
Reference in New Issue
Block a user