mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add and use CNetAddr::HasCJDNSPrefix() helper
This commit is contained in:
parent
5ba73cd0ee
commit
fb4265747c
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue