mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-02 21:36:16 +03:00
Update others.go
This commit is contained in:
parent
da7765959f
commit
72190c66cd
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ func GetToolLocation(file string) string {
|
|||
return filepath.Join(toolPath, file)
|
||||
}
|
||||
|
||||
// GetAssetLocation searches for `file` in certain locations
|
||||
// GetAssetLocation searches for `file` in the env dir, the executable dir, and certain locations
|
||||
func GetAssetLocation(file string) string {
|
||||
assetPath := NewEnvFlag(AssetLocation).GetValue(getExecutableDir)
|
||||
defPath := filepath.Join(assetPath, file)
|
||||
|
@ -43,6 +43,7 @@ func GetAssetLocation(file string) string {
|
|||
return defPath
|
||||
}
|
||||
|
||||
// GetCertLocation searches for `file` in the env dir and the executable dir
|
||||
func GetCertLocation(file string) string {
|
||||
certPath := NewEnvFlag(CertLocation).GetValue(getExecutableDir)
|
||||
return filepath.Join(certPath, file)
|
||||
|
|
Loading…
Add table
Reference in a new issue