From c0a0231614a5c2f439a0324ccfed04a72e7cf22d Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 9 Mar 2026 15:57:05 +0800 Subject: [PATCH] Add geoip download and bump lib version --- gen_assets.sh | 3 +++ libv2ray_main.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gen_assets.sh b/gen_assets.sh index 0a25283..b69c808 100644 --- a/gen_assets.sh +++ b/gen_assets.sh @@ -26,6 +26,9 @@ download_dat() { echo "Downloading geosite.dat..." curl -sL https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -o "$DATADIR/geosite.dat" + + echo "Downloading geoip-only-cn-private.dat..." + curl -sL https://raw.githubusercontent.com/Loyalsoldier/geoip/release/geoip-only-cn-private.dat -o "$DATADIR/geoip-only-cn-private.dat" } # Main execution logic diff --git a/libv2ray_main.go b/libv2ray_main.go index 6dbfb68..c8ca4d1 100644 --- a/libv2ray_main.go +++ b/libv2ray_main.go @@ -195,7 +195,7 @@ func MeasureOutboundDelay(ConfigureFileContent string, url string) (int64, error // CheckVersionX returns the library and Xray versions func CheckVersionX() string { - var version = 34 + var version = 35 return fmt.Sprintf("Lib v%d, Xray-core v%s", version, core.Version()) }