diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-19 15:11:43 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-19 15:11:43 -0700 |
commit | 0b2e5ed499aea0076caa2dc1d8784796e54da538 (patch) | |
tree | d26009798158d0782752bcbb2c4e7ff09c890caa /node | |
parent | 915077875759f1040b8bba281ef3d4f82e4ac1ab (diff) | |
download | infinitytier-0b2e5ed499aea0076caa2dc1d8784796e54da538.tar.gz infinitytier-0b2e5ed499aea0076caa2dc1d8784796e54da538.zip |
Fix some broken logic in Path::reliable()
Diffstat (limited to 'node')
-rw-r--r-- | node/Path.hpp | 4 |
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; } /** |