MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / SetProxy

Function SetProxy

src/netbase.cpp:414–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414bool SetProxy(enum Network net, CService addrProxy, int nSocksVersion) {
415 assert(net >= 0 && net < NET_MAX);
416 if (nSocksVersion != 0 && nSocksVersion != 4 && nSocksVersion != 5) return false;
417 if (nSocksVersion != 0 && !addrProxy.IsValid()) return false;
418 LOCK(cs_proxyInfos);
419 proxyInfo[net] = make_pair(addrProxy, nSocksVersion);
420 return true;
421}
422
423bool GetProxy(enum Network net, ProxyType& proxyInfoOut) {
424 assert(net >= 0 && net < NET_MAX);

Callers 1

AppInitFunction · 0.85

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected