This commit is contained in:
JCW
2026-04-09 15:09:24 +01:00
parent 494af3aee8
commit 3ccbee28d1

View File

@@ -33,7 +33,7 @@ is_public(AddressV6 const& addr)
auto const b = addr.to_bytes();
// fe80::/10 - Link-local
if (b[0] & 0xff == 0xfe && (b[1] & 0xc0) == 0x80)
if (b[0] == 0xfe && (b[1] & 0xc0) == 0x80)
return false;
// 100::/64 - Discard prefix (RFC 6666)
if (b[0] == 0x01 && b[1] == 0x00 && b[2] == 0 && b[3] == 0 && b[4] == 0 &&