MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / LoadTorIPsFromStaticData

Function LoadTorIPsFromStaticData

src/ipgroups.cpp:181–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181static void LoadTorIPsFromStaticData() {
182 CIPGroup ipGroup;
183 ipGroup.header.name = "tor_static";
184 ipGroup.header.priority = OPEN_PROXY_PRIORITY;
185 for (const char **ptr = pszTorExits; *ptr; ptr++) {
186 string ip(*ptr);
187 ip = ip + "/32";
188 ipGroup.subnets.push_back(CSubNet(ip));
189 }
190 LOCK(*cs_groups);
191 groups.push_back(ipGroup);
192}
193
194void AddOrReplace(CIPGroup &group) {
195 LOCK(*cs_groups);

Callers 1

InitTorIPGroupsFunction · 0.85

Calls 2

CSubNetClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected