mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
netaddress: fix up IsTor()
We don't actually use it, but let's fix it anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
877f63e99e
commit
6d69e7b066
@ -137,10 +137,9 @@ static bool IsRFC4843(const struct wireaddr *addr)
|
|||||||
return IsIPv6(addr) && (GetByte(addr, 15) == 0x20 && GetByte(addr, 14) == 0x01 && GetByte(addr, 13) == 0x00 && (GetByte(addr, 12) & 0xF0) == 0x10);
|
return IsIPv6(addr) && (GetByte(addr, 15) == 0x20 && GetByte(addr, 14) == 0x01 && GetByte(addr, 13) == 0x00 && (GetByte(addr, 12) & 0xF0) == 0x10);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool IsTor(const struct wireaddr *addr UNUSED)
|
static bool IsTor(const struct wireaddr *addr)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
return addr->type == ADDR_TYPE_TOR_V2 || addr->type == ADDR_TYPE_TOR_V3;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool IsLocal(const struct wireaddr *addr)
|
static bool IsLocal(const struct wireaddr *addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user