diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:35:50 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:35:50 +0200 |
commit | 481d7ed147f590bab925a9e827b74c907f84167a (patch) | |
tree | 38db544f6ae05f3a51e5acfff0751be88e85d943 | |
parent | Merge pull request #4597 (diff) | |
parent | p2p: a negative result from UPNP_GetValidIGD is an error (diff) | |
download | monero-481d7ed147f590bab925a9e827b74c907f84167a.tar.xz |
Merge pull request #4604
0fbbb065 p2p: a negative result from UPNP_GetValidIGD is an error (moneromooo-monero)
-rw-r--r-- | src/p2p/net_node.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 9390626a8..705c4da4e 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -2042,7 +2042,7 @@ namespace nodetool char lanAddress[64]; result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress); freeUPNPDevlist(deviceList); - if (result != 0) { + if (result > 0) { if (result == 1) { std::ostringstream portString; portString << port; @@ -2088,7 +2088,7 @@ namespace nodetool char lanAddress[64]; result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress); freeUPNPDevlist(deviceList); - if (result != 0) { + if (result > 0) { if (result == 1) { std::ostringstream portString; portString << port; |