summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-19 15:11:43 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-19 15:11:43 -0700
commit0b2e5ed499aea0076caa2dc1d8784796e54da538 (patch)
treed26009798158d0782752bcbb2c4e7ff09c890caa /node
parent915077875759f1040b8bba281ef3d4f82e4ac1ab (diff)
downloadinfinitytier-0b2e5ed499aea0076caa2dc1d8784796e54da538.tar.gz
infinitytier-0b2e5ed499aea0076caa2dc1d8784796e54da538.zip
Fix some broken logic in Path::reliable()
Diffstat (limited to 'node')
-rw-r--r--node/Path.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Path.hpp b/node/Path.hpp
index 6a69e071..6fa3c52e 100644
--- a/node/Path.hpp
+++ b/node/Path.hpp
@@ -114,7 +114,9 @@ public:
*/
inline bool reliable() const throw()
{
- return ( (_addr.ss_family == AF_INET6) || ((_ipScope != InetAddress::IP_SCOPE_GLOBAL)&&(_ipScope != InetAddress::IP_SCOPE_PSEUDOPRIVATE)) );
+ if (_addr.ss_family == AF_INET)
+ return ((_ipScope != InetAddress::IP_SCOPE_GLOBAL)&&(_ipScope != InetAddress::IP_SCOPE_PSEUDOPRIVATE));
+ return true;
}
/**