mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-07 03:42:21 +01:00
14 lines
930 B
Diff
14 lines
930 B
Diff
API changed in miniupnpc 2.2.8
|
|
|
|
--- a/Core/Util/PortManager.cpp
|
|
+++ b/Core/Util/PortManager.cpp
|
|
@@ -161,7 +161,7 @@
|
|
|
|
// Get LAN IP address that connects to the router
|
|
char lanaddr[64] = "unset";
|
|
- int status = UPNP_GetValidIGD(devlist, urls, datas, lanaddr, sizeof(lanaddr)); //possible "status" values, 0 = NO IGD found, 1 = A valid connected IGD has been found, 2 = A valid IGD has been found but it reported as not connected, 3 = an UPnP device has been found but was not recognized as an IGD
|
|
+ int status = UPNP_GetValidIGD(devlist, urls, datas, lanaddr, sizeof(lanaddr), nullptr, 0); //possible "status" values, 0 = NO IGD found, 1 = A valid connected IGD has been found, 2 = A valid IGD has been found but it reported as not connected, 3 = an UPnP device has been found but was not recognized as an IGD
|
|
m_lanip = std::string(lanaddr);
|
|
INFO_LOG(SCENET, "PortManager - Detected LAN IP: %s", m_lanip.c_str());
|
|
|