mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-08-26 05:41:49 +00:00
fix IsYggdrasil
condition
This commit is contained in:
parent
2d1b04f3d9
commit
f621a229cd
@ -684,7 +684,7 @@ bool CNetAddr::IsTor() const
|
|||||||
// https://yggdrasil-network.github.io/2018/07/28/addressing.html#addressing-in-yggdrasil
|
// https://yggdrasil-network.github.io/2018/07/28/addressing.html#addressing-in-yggdrasil
|
||||||
bool CNetAddr::IsYggdrasil() const
|
bool CNetAddr::IsYggdrasil() const
|
||||||
{
|
{
|
||||||
return (ip[0] & 0xFE) == 0x20; // @TODO wants revision
|
return IsIPv6() && (ip[0] & 0xFE) == 0x02; // @TODO wants revision
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CNetAddr::IsLocal() const
|
bool CNetAddr::IsLocal() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user