mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +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;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
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 */ = {
|
C12F197E1E1AE6D50005E93F /* ShellScript */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
|||||||
@@ -261,8 +261,13 @@ tr_port_forwarding_state tr_upnpPulse(
|
|||||||
|
|
||||||
FreeUPNPUrls(&handle->urls);
|
FreeUPNPUrls(&handle->urls);
|
||||||
auto lanaddr = std::array<char, TR_ADDRSTRLEN>{};
|
auto lanaddr = std::array<char, TR_ADDRSTRLEN>{};
|
||||||
if (UPNP_GetValidIGD(devlist, &handle->urls, &handle->data, std::data(lanaddr), std::size(lanaddr) - 1) ==
|
if (
|
||||||
UPNP_IGD_VALID_CONNECTED)
|
#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(_("Found Internet Gateway Device '{url}'"), fmt::arg("url", handle->urls.controlURL)));
|
||||||
tr_logAddInfo(fmt::format(_("Local Address is '{address}'"), fmt::arg("address", lanaddr.data())));
|
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