Skip to content

Commit c0a0231

Browse files
committed
Add geoip download and bump lib version
1 parent d783dc8 commit c0a0231

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

gen_assets.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ download_dat() {
2626

2727
echo "Downloading geosite.dat..."
2828
curl -sL https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -o "$DATADIR/geosite.dat"
29+
30+
echo "Downloading geoip-only-cn-private.dat..."
31+
curl -sL https://raw.githubusercontent.com/Loyalsoldier/geoip/release/geoip-only-cn-private.dat -o "$DATADIR/geoip-only-cn-private.dat"
2932
}
3033

3134
# Main execution logic

libv2ray_main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func MeasureOutboundDelay(ConfigureFileContent string, url string) (int64, error
195195

196196
// CheckVersionX returns the library and Xray versions
197197
func CheckVersionX() string {
198-
var version = 34
198+
var version = 35
199199
return fmt.Sprintf("Lib v%d, Xray-core v%s", version, core.Version())
200200
}
201201

0 commit comments

Comments
 (0)