mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +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:
parent
ec6112e0b1
commit
febfe49ca3
3 changed files with 9 additions and 4 deletions
|
@ -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
|
@ -1 +1 @@
|
||||||
Subproject commit 7f189988a0decca0ab7da89000051ab91751f70d
|
Subproject commit b55145ec095652289a59c33603f3abafee898273
|
Loading…
Reference in a new issue