mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 21:23:27 +01:00
Merge pull request #420
ee27559
Update to compile with latest miniupnpc (warptangent)
This commit is contained in:
commit
5b47019cf4
@ -443,7 +443,13 @@ namespace nodetool
|
||||
if(m_no_igd == false) {
|
||||
LOG_PRINT_L0("Attempting to add IGD port mapping.");
|
||||
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);
|
||||
#endif
|
||||
UPNPUrls urls;
|
||||
IGDdatas igdData;
|
||||
char lanAddress[64];
|
||||
|
Loading…
Reference in New Issue
Block a user