chore: improve geo

This commit is contained in:
hstyi
2025-06-13 16:07:46 +08:00
committed by hstyi
parent ab017be855
commit 7cb6696bba
2 changed files with 2 additions and 2 deletions

View File

@@ -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"))

View File

@@ -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()