Browse Source

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>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
6d69e7b066
  1. 5
      gossipd/netaddress.c

5
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); 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…
Cancel
Save