MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ProxyForIPv4or6

Method ProxyForIPv4or6

src/net.cpp:3181–3189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3179}
3180
3181std::optional<Proxy> CConnman::PrivateBroadcast::ProxyForIPv4or6() const
3182{
3183 if (m_outbound_tor_ok_at_least_once.load()) {
3184 if (const auto tor_proxy = GetProxy(NET_ONION)) {
3185 return tor_proxy;
3186 }
3187 }
3188 return std::nullopt;
3189}
3190
3191Mutex NetEventsInterface::g_msgproc_mutex;
3192

Callers

nothing calls this directly

Calls 2

GetProxyFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected