diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-30 15:20:08 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-30 15:20:08 -0700 |
commit | 11ff96ba1ddc07c3414590aa31a35e6353176213 (patch) | |
tree | 041242d5f1053f138857f875c529f508c19b068c | |
parent | 0d0039674fefbfc14eb41f3bdbec7bf3e6dba9a5 (diff) | |
download | infinitytier-11ff96ba1ddc07c3414590aa31a35e6353176213.tar.gz infinitytier-11ff96ba1ddc07c3414590aa31a35e6353176213.zip |
Consider IPv6 paths reliable (no constant keepalives needed)
-rw-r--r-- | node/Path.hpp | 2 |
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)) ); } /** |