diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-10-06 10:51:25 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-10-06 10:51:34 +0200 |
commit | 5b47019cf4d6608f94c1badb36de184f9ad83eeb (patch) | |
tree | 09919d0f06b7dfd73feaad5c32e3ca5fcd3c0a27 /src | |
parent | Merge pull request #419 (diff) | |
parent | Update to compile with latest miniupnpc (diff) | |
download | monero-5b47019cf4d6608f94c1badb36de184f9ad83eeb.tar.xz |
Merge pull request #420
ee27559 Update to compile with latest miniupnpc (warptangent)
Diffstat (limited to 'src')
-rw-r--r-- | src/p2p/net_node.inl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 0561ac584..d92b4bb2a 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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]; |