Browse Source

Consider IPv6 paths reliable (no constant keepalives needed)

Adam Ierymenko 10 years ago
parent
commit
11ff96ba1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/Path.hpp

+ 1 - 1
node/Path.hpp

@@ -114,7 +114,7 @@ public:
 	 */
 	 */
 	inline bool reliable() const throw()
 	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)) );
 	}
 	}
 
 
 	/**
 	/**