mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-23 21:15:54 +00:00
tinc: update to githash d9e42fa and addon (1)
- miniupnpc: update to 2.2.8
This commit is contained in:
packages/addons/service/tinc
@ -2,9 +2,9 @@
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="tinc"
|
||||
PKG_VERSION="4c6a9a9611442f958c3049a566ac4369653978e9"
|
||||
PKG_SHA256="409829f454fdfe87f7222f131de88006640709ff046e2241bfdb44a49a146059"
|
||||
PKG_REV="0"
|
||||
PKG_VERSION="d9e42faa6a7f4da98502be44566605a01a16a637"
|
||||
PKG_SHA256="93f261fd393d57a0f1a1031b99797c37dd6ddec98f0f7c4c8778bac2be443b9a"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPLv2"
|
||||
PKG_SITE="http://www.tinc-vpn.org/"
|
||||
|
@ -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");
|
Reference in New Issue
Block a user