精简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 (
"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 (