Add and use CNetAddr::HasCJDNSPrefix() helper

This commit is contained in:
Jon Atack
2023-07-14 10:48:30 -06:00
parent 5ba73cd0ee
commit fb4265747c
3 changed files with 3 additions and 3 deletions

View File

@@ -450,8 +450,7 @@ bool CNetAddr::IsValid() const
return false;
}
// CJDNS addresses always start with 0xfc
if (IsCJDNS() && (m_addr[0] != 0xFC)) {
if (IsCJDNS() && !HasCJDNSPrefix()) {
return false;
}