feat: build in asn mmdb (#7974)

* chore(scripts): add ASN mmdb resolution to prebuild tasks

* docs: update Changelog.md

* docs: update Cangelog.md

* feat: include ASN database in runtime resources
This commit is contained in:
oomeow
2026-09-21 13:03:03 +00:00
committed by GitHub
parent af0f502f98
commit 5059cdcb9d
4 changed files with 21 additions and 12 deletions
+1
View File
@@ -7,6 +7,7 @@ use std::path::{Component, Path, PathBuf};
pub(crate) const GEO_ASSETS: &[&str] = &[
"Country.mmdb",
"ASN.mmdb",
"geoip.dat",
"geosite.dat",
"geoip.metadb",
+1 -1
View File
@@ -516,7 +516,7 @@ pub async fn init_resources() -> Result<()> {
std::mem::drop(fs::create_dir_all(&res_dir).await);
}
let file_list = ["Country.mmdb", "geoip.dat", "geosite.dat"];
let file_list = ["Country.mmdb", "ASN.mmdb", "geoip.dat", "geosite.dat"];
for file in file_list.iter() {
let src_path = res_dir.join(file);