summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-09-30 15:20:08 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-09-30 15:20:08 -0700
commit11ff96ba1ddc07c3414590aa31a35e6353176213 (patch)
tree041242d5f1053f138857f875c529f508c19b068c /node
parent0d0039674fefbfc14eb41f3bdbec7bf3e6dba9a5 (diff)
downloadinfinitytier-11ff96ba1ddc07c3414590aa31a35e6353176213.tar.gz
infinitytier-11ff96ba1ddc07c3414590aa31a35e6353176213.zip
Consider IPv6 paths reliable (no constant keepalives needed)
Diffstat (limited to 'node')
-rw-r--r--node/Path.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Path.hpp b/node/Path.hpp
index 3fa06b58..9d97d2df 100644
--- a/node/Path.hpp
+++ b/node/Path.hpp
@@ -114,7 +114,7 @@ public:
*/
inline bool reliable() const throw()
{
- return ((_ipScope != InetAddress::IP_SCOPE_GLOBAL)&&(_ipScope != InetAddress::IP_SCOPE_PSEUDOPRIVATE));
+ return ( (_addr.ss_family == AF_INET6) || ((_ipScope != InetAddress::IP_SCOPE_GLOBAL)&&(_ipScope != InetAddress::IP_SCOPE_PSEUDOPRIVATE)) );
}
/**