|
|
@ -58,8 +58,9 @@ final class IP2Country {
|
|
|
|
OnionRequestAPI.paths = storage.getOnionRequestPaths(in: transaction)
|
|
|
|
OnionRequestAPI.paths = storage.getOnionRequestPaths(in: transaction)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
guard OnionRequestAPI.paths.count >= OnionRequestAPI.pathCount else { return false }
|
|
|
|
let paths = OnionRequestAPI.paths
|
|
|
|
let pathToDisplay = OnionRequestAPI.paths.first!
|
|
|
|
guard paths.count >= OnionRequestAPI.pathCount else { return false }
|
|
|
|
|
|
|
|
let pathToDisplay = paths.first!
|
|
|
|
pathToDisplay.forEach { snode in
|
|
|
|
pathToDisplay.forEach { snode in
|
|
|
|
let _ = self.cacheCountry(for: snode.ip) // Preload if needed
|
|
|
|
let _ = self.cacheCountry(for: snode.ip) // Preload if needed
|
|
|
|
}
|
|
|
|
}
|
|
|
|