From 6d69e7b066f2a6c29b9930c45273dcfbb3e64e7d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 10 May 2018 08:48:23 +0930 Subject: [PATCH] netaddress: fix up IsTor() We don't actually use it, but let's fix it anyway. Signed-off-by: Rusty Russell --- gossipd/netaddress.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gossipd/netaddress.c b/gossipd/netaddress.c index 7b695b8c7..8255e343b 100644 --- a/gossipd/netaddress.c +++ b/gossipd/netaddress.c @@ -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); } -static bool IsTor(const struct wireaddr *addr UNUSED) +static bool IsTor(const struct wireaddr *addr) { - /* FIXME */ - return false; + return addr->type == ADDR_TYPE_TOR_V2 || addr->type == ADDR_TYPE_TOR_V3; } static bool IsLocal(const struct wireaddr *addr)