mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-12-01 06:08:37 +00:00
Update geodata.go
This commit is contained in:
@@ -25,8 +25,9 @@ func (c *GeodataAssetConfig) Build() (*geodata.Asset, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func migrateGeodataURL(assetURL string) string {
|
func migrateGeodataURL(assetURL string) string
|
||||||
if strings.HasSuffix(assetURL, ".dat") && (strings.HasPrefix(strings.ToLower(assetURL), "https://raw.githubusercontent.com/xtls/xray-rules-dat/") || strings.HasPrefix(strings.ToLower(assetURL), "https://github.com/xtls/xray-rules-dat/")) {
|
if strings.HasSuffix(strings.ToLower(assetURL), ".dat") && (strings.HasPrefix(strings.ToLower(assetURL), "https://github.com/xtls/xray-rules-dat/") ||
|
||||||
|
strings.HasPrefix(strings.ToLower(assetURL), "https://raw.githubusercontent.com/xtls/xray-rules-dat/")) {
|
||||||
errors.PrintDeprecatedFeatureWarning(assetURL, assetURL+".gz")
|
errors.PrintDeprecatedFeatureWarning(assetURL, assetURL+".gz")
|
||||||
return assetURL + ".gz"
|
return assetURL + ".gz"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user