From c56a02c948227d158ec0b4212775f55abb477a80 Mon Sep 17 00:00:00 2001 From: Muse Date: Tue, 20 Oct 2026 10:59:03 +0000 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80P2:=20geodata=20token=20?= =?UTF-8?q?=E5=B8=B8=E9=87=8F=E5=86=85=E8=81=94,=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=AF=B9=20xray-core=20common/geodata=20=E7=9A=84=E5=B8=B8?= =?UTF-8?q?=E9=87=8F=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/xray/geodata/token.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/xray/geodata/token.go b/internal/xray/geodata/token.go index 0e120cc..a100a3d 100644 --- a/internal/xray/geodata/token.go +++ b/internal/xray/geodata/token.go @@ -3,15 +3,14 @@ package geodata import ( "errors" "strings" - - xraygeodata "github.com/xtls/xray-core/common/geodata" ) // DefaultSiteFile and DefaultIPFile are the databases the geosite: and geoip: -// shorthands expand to. +// shorthands expand to. They are xray-core's file names, inlined so this +// package no longer links the core library just for two constants. const ( - DefaultSiteFile = xraygeodata.DefaultGeoSiteDat - DefaultIPFile = xraygeodata.DefaultGeoIPDat + DefaultSiteFile = "geosite.dat" + DefaultIPFile = "geoip.dat" ) var (