| 275 | } |
| 276 | |
| 277 | static void InitTorIPGroups(CScheduler *scheduler) { |
| 278 | // Load Tor Exits as a group. We use both static and dynamically loaded data to avoid incentivising someone |
| 279 | // to DoS the Tor website, and to give us a fighting chance of correctly labelling connections that come in |
| 280 | // a few seconds after startup (this can happen). Kick off a poll now and then do it (by default) once per day. |
| 281 | if (scheduler) { |
| 282 | scheduler->scheduleFromNow(&PollTorWebsite, 0); |
| 283 | scheduler->scheduleEvery(&PollTorWebsite, GetArg("-poll-tor-seconds", DEFAULT_IP_PRIO_URL_POLL_INTERVAL)); |
| 284 | } |
| 285 | LoadTorIPsFromStaticData(); |
| 286 | } |
| 287 | |
| 288 | void InitIPGroups(CScheduler *scheduler) { |
| 289 | { |
no test coverage detected