mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 06:36:41 +00:00
tinc: update to githash f3d5e22
This commit is contained in:
parent
035b0f5c28
commit
4e012600b0
@ -2,8 +2,8 @@
|
|||||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="tinc"
|
PKG_NAME="tinc"
|
||||||
PKG_VERSION="4c6a9a9611442f958c3049a566ac4369653978e9"
|
PKG_VERSION="f3d5e22592ed6d50e7023e517a2ec0c70af94066"
|
||||||
PKG_SHA256="409829f454fdfe87f7222f131de88006640709ff046e2241bfdb44a49a146059"
|
PKG_SHA256="6bc7cc8757ad00768bbd1c4f247f76cff24b507ebfec5db80658b292d5bc3c77"
|
||||||
PKG_REV="0"
|
PKG_REV="0"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPLv2"
|
PKG_LICENSE="GPLv2"
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
From 8331467f15c948a251261a333d2a79022fa2b71e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Yixun Lan <dlan@gentoo.org>
|
||||||
|
Date: Mon, 8 Jul 2024 18:27:46 +0000
|
||||||
|
Subject: [PATCH] upnp: fix API change issue
|
||||||
|
|
||||||
|
adjust once update to miniupnpc-2.2.8
|
||||||
|
|
||||||
|
Closes: https://github.com/gsliepen/tinc/issues/458
|
||||||
|
Signed-off-by: Yixun Lan <dlan@gentoo.org>
|
||||||
|
---
|
||||||
|
src/upnp.c | 6 +++++-
|
||||||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/upnp.c b/src/upnp.c
|
||||||
|
index 8223b2df2..e67a544fa 100644
|
||||||
|
--- a/src/upnp.c
|
||||||
|
+++ b/src/upnp.c
|
||||||
|
@@ -122,8 +122,12 @@ static void upnp_refresh(void) {
|
||||||
|
struct IGDdatas data;
|
||||||
|
|
||||||
|
char myaddr[64];
|
||||||
|
-
|
||||||
|
+#if (MINIUPNPC_API_VERSION >= 18)
|
||||||
|
+ char wnaddr[64];
|
||||||
|
+ int result = UPNP_GetValidIGD(devices, &urls, &data, myaddr, sizeof(myaddr), wnaddr, sizeof(wnaddr));
|
||||||
|
+#else
|
||||||
|
int result = UPNP_GetValidIGD(devices, &urls, &data, myaddr, sizeof(myaddr));
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
if(result <= 0) {
|
||||||
|
logger(DEBUG_PROTOCOL, LOG_WARNING, "[upnp] No IGD found");
|
Loading…
x
Reference in New Issue
Block a user