mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Fix some broken logic in Path::reliable()
This commit is contained in:
parent
9150778757
commit
0b2e5ed499
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ public:
|
|||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue