Explorar o código

Fix some broken logic in Path::reliable()

Adam Ierymenko %!s(int64=10) %!d(string=hai) anos
pai
achega
0b2e5ed499
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      node/Path.hpp

+ 3 - 1
node/Path.hpp

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