feat: 排行榜不再展示任何IP,用户列显示地区(ip2region v4 离线库)+浏览器(UA解析);IP仅后台保存,页面上方显示IP+地区

This commit is contained in:
dsh
2026-08-17 23:10:02 -04:00
parent 780e84e67e
commit d8917a666a
9 changed files with 229 additions and 83 deletions
+4
View File
@@ -128,6 +128,10 @@ deploy_files() {
# 复制模板文件(目录结构: internal/web/templates/*.html
cp -f "${BUILD_DIR}/internal/web/templates/"*.html "${INSTALL_DIR}/internal/web/templates/"
# 复制 ip2region 地区库(离线 GeoIP 数据)
mkdir -p "${INSTALL_DIR}/data"
cp -f "${BUILD_DIR}/data/ip2region_v4.xdb" "${INSTALL_DIR}/data/ip2region_v4.xdb"
# 配置文件由程序首次启动时自动生成 + 缺失项自动补全,脚本不干预
if [[ -f "${CONFIG_DIR}/speedtest.toml" ]]; then
info "保留现有配置文件: ${CONFIG_DIR}/speedtest.toml"