| 179 | } |
| 180 | |
| 181 | static 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 | |
| 194 | void AddOrReplace(CIPGroup &group) { |
| 195 | LOCK(*cs_groups); |
no test coverage detected