From 32a70562c48b8377ca8391eaa13ec19b1491b504 Mon Sep 17 00:00:00 2001 From: self-related <105994362+self-related@users.noreply.github.com> Date: Mon, 19 Aug 2024 00:07:22 +0300 Subject: [PATCH] Fix UPnP: error 2 --- daemon/UPnP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/UPnP.cpp b/daemon/UPnP.cpp index 7885578e..b1f698c1 100644 --- a/daemon/UPnP.cpp +++ b/daemon/UPnP.cpp @@ -122,7 +122,7 @@ namespace transport err = UPNP_GetValidIGD (m_Devlist, &m_upnpUrls, &m_upnpData, m_NetworkAddr, sizeof (m_NetworkAddr)); #endif m_upnpUrlsInitialized=err!=0; - if (err == UPNP_IGD_VALID_CONNECTED) + if (err == UPNP_IGD_VALID_CONNECTED || err == UPNP_IGD_VALID_NOT_CONNECTED) { #if (MINIUPNPC_API_VERSION < 18) err = UPNP_GetExternalIPAddress (m_upnpUrls.controlURL, m_upnpData.first.servicetype, m_externalIPAddress);