[#CNetAddr-IsPrivacyNet]
= xref:CNetAddr.adoc[CNetAddr]::IsPrivacyNet
:relfileprefix: ../
:mrdocs:

Whether this object is a privacy network&period; TODO&colon; consider adding IsCJDNS() here when more peers adopt CJDNS, see&colon; https&colon;&sol;&sol;github&period;com&sol;bitcoin&sol;bitcoin&sol;pull&sol;27411&num;issuecomment&hyphen;1497176155

== Synopsis

Declared in `&lt;netaddress&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
IsPrivacyNet() const;
----

== Return Value

True when the address is on a privacy network (Tor or I2P)&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
