mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Update to compile with latest miniupnpc
upnpDiscover() takes a new argument for TTL. Use the suggested default of 2.
This commit is contained in:
parent
1e7fc9c093
commit
ee27559724
1 changed files with 6 additions and 0 deletions
|
@ -443,7 +443,13 @@ namespace nodetool
|
||||||
if(m_no_igd == false) {
|
if(m_no_igd == false) {
|
||||||
LOG_PRINT_L0("Attempting to add IGD port mapping.");
|
LOG_PRINT_L0("Attempting to add IGD port mapping.");
|
||||||
int result;
|
int result;
|
||||||
|
#if MINIUPNPC_API_VERSION > 13
|
||||||
|
// default according to miniupnpc.h
|
||||||
|
unsigned char ttl = 2;
|
||||||
|
UPNPDev* deviceList = upnpDiscover(1000, NULL, NULL, 0, 0, ttl, &result);
|
||||||
|
#else
|
||||||
UPNPDev* deviceList = upnpDiscover(1000, NULL, NULL, 0, 0, &result);
|
UPNPDev* deviceList = upnpDiscover(1000, NULL, NULL, 0, 0, &result);
|
||||||
|
#endif
|
||||||
UPNPUrls urls;
|
UPNPUrls urls;
|
||||||
IGDdatas igdData;
|
IGDdatas igdData;
|
||||||
char lanAddress[64];
|
char lanAddress[64];
|
||||||
|
|
Loading…
Reference in a new issue