Consider IPv6 paths reliable (no constant keepalives needed)

This commit is contained in:
Adam Ierymenko 2015-09-30 15:20:08 -07:00
parent 0d0039674f
commit 11ff96ba1d

View file

@ -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)) );
} }
/** /**