|
|
@ -106,6 +106,7 @@ class IP2Country internal constructor(
|
|
|
|
|
|
|
|
|
|
|
|
private fun populateCacheIfNeeded() {
|
|
|
|
private fun populateCacheIfNeeded() {
|
|
|
|
GlobalScope.launch {
|
|
|
|
GlobalScope.launch {
|
|
|
|
|
|
|
|
val start = System.currentTimeMillis()
|
|
|
|
OnionRequestAPI.paths.iterator().forEach { path ->
|
|
|
|
OnionRequestAPI.paths.iterator().forEach { path ->
|
|
|
|
path.iterator().forEach { snode ->
|
|
|
|
path.iterator().forEach { snode ->
|
|
|
|
cacheCountryForIP(snode.ip) // Preload if needed
|
|
|
|
cacheCountryForIP(snode.ip) // Preload if needed
|
|
|
|