summaryrefslogtreecommitdiff
path: root/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.12.1-miniupnpc-2.2.8.patch
blob: 64dcce950d481f3d2bed497c6d2f4baf7c7291c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://github.com/airdcpp/airdcpp-windows/commit/2b1cd3d05774ce8134186bb9977a45cf00aaaef5

From 2b1cd3d05774ce8134186bb9977a45cf00aaaef5 Mon Sep 17 00:00:00 2001
From: maksis <maksis@adrenaline-network.com>
Date: Thu, 13 Jun 2024 20:05:17 +0300
Subject: [PATCH] Add support for miniupnpc 2.2.8

--- a/airdcpp-core/airdcpp/Mapper_MiniUPnPc.cpp
+++ b/airdcpp-core/airdcpp/Mapper_MiniUPnPc.cpp
@@ -108,7 +108,12 @@ bool Mapper_MiniUPnPc::init() {
 	UPNPUrls urls;
 	IGDdatas data;
 
+#if (MINIUPNPC_API_VERSION >= 18)
+	auto ret = UPNP_GetValidIGD(devices, &urls, &data, 0, 0, nullptr, 0);
+#else
 	auto ret = UPNP_GetValidIGD(devices, &urls, &data, 0, 0);
+#endif
+
 
 	bool ok = ret == 1;
 	if(ok) {