mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
chore: improve geo
This commit is contained in:
@@ -2,7 +2,7 @@ plugins {
|
|||||||
alias(libs.plugins.kotlin.jvm)
|
alias(libs.plugins.kotlin.jvm)
|
||||||
}
|
}
|
||||||
|
|
||||||
project.version = "0.0.1"
|
project.version = "0.0.2"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation(kotlin("test"))
|
testImplementation(kotlin("test"))
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class GeoApplicationRunnerExtension private constructor() : ApplicationRunnerExt
|
|||||||
|
|
||||||
|
|
||||||
private fun downloadGeoLite2(dbFile: File) {
|
private fun downloadGeoLite2(dbFile: File) {
|
||||||
val url = "https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-Country.mmdb"
|
val url = "https://git.io/GeoLite2-Country.mmdb"
|
||||||
val response = httpClient.newCall(
|
val response = httpClient.newCall(
|
||||||
Request.Builder().get().url(url)
|
Request.Builder().get().url(url)
|
||||||
.build()
|
.build()
|
||||||
|
|||||||
Reference in New Issue
Block a user