MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsProxy

Function IsProxy

src/netbase.cpp:647–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647bool IsProxy(const CNetAddr &addr) {
648 LOCK(g_proxyinfo_mutex);
649 for (int i = 0; i < NET_MAX; i++) {
650 if (addr == static_cast<CNetAddr>(proxyInfo[i].proxy))
651 return true;
652 }
653 return false;
654}
655
656bool ConnectThroughProxy(const Proxy& proxy, const std::string& strDest, uint16_t port, const Sock& sock, int nTimeout, bool& outProxyConnectionFailed)
657{

Callers 1

PushNodeVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected