精简P2: geodata token 常量内联, 去掉对 xray-core common/geodata 的常量引用
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user