aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2023-07-14 10:48:30 -0600
committerJon Atack <jon@atack.com>2023-07-19 11:49:27 -0600
commitfb4265747c9eb022d80c6f2988e574c689130348 (patch)
treedcf2a0c2b5cdd90fcc4df668d380454223c5daa8 /src/netaddress.h
parent5ba73cd0ee1e661ec4d041ac8ae7a60cfd31f0c0 (diff)
Add and use CNetAddr::HasCJDNSPrefix() helper
Diffstat (limited to 'src/netaddress.h')
-rw-r--r--src/netaddress.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netaddress.h b/src/netaddress.h
index 36dc886406..5e67d843e2 100644
--- a/src/netaddress.h
+++ b/src/netaddress.h
@@ -182,6 +182,7 @@ public:
bool IsTor() const;
bool IsI2P() const;
bool IsCJDNS() const;
+ [[nodiscard]] bool HasCJDNSPrefix() const { return m_addr[0] == 0xfc; }
bool IsLocal() const;
bool IsRoutable() const;
bool IsInternal() const;