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