mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Add and use CNetAddr::HasCJDNSPrefix() helper
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user