精简P2: geodata token 常量内联, 去掉对 xray-core common/geodata 的常量引用

This commit is contained in:
Muse
2026-10-20 10:59:03 +00:00
parent 4149a162b8
commit c56a02c948
+4 -5
View File
@@ -3,15 +3,14 @@ package geodata
import ( import (
"errors" "errors"
"strings" "strings"
xraygeodata "github.com/xtls/xray-core/common/geodata"
) )
// DefaultSiteFile and DefaultIPFile are the databases the geosite: and geoip: // 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 ( const (
DefaultSiteFile = xraygeodata.DefaultGeoSiteDat DefaultSiteFile = "geosite.dat"
DefaultIPFile = xraygeodata.DefaultGeoIPDat DefaultIPFile = "geoip.dat"
) )
var ( var (