mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-26 11:44:22 -04:00
Merge pull request #934 from yujinqiu/fix-execute-typo
Fix executable typo
This commit is contained in:
commit
51bd5132f6
@ -53,7 +53,7 @@ func getExecutableDir() string {
|
|||||||
return filepath.Dir(exec)
|
return filepath.Dir(exec)
|
||||||
}
|
}
|
||||||
|
|
||||||
func getExecuableSubDir(dir string) func() string {
|
func getExecutableSubDir(dir string) func() string {
|
||||||
return func() string {
|
return func() string {
|
||||||
return filepath.Join(getExecutableDir(), dir)
|
return filepath.Join(getExecutableDir(), dir)
|
||||||
}
|
}
|
||||||
@ -67,7 +67,7 @@ func GetAssetLocation(file string) string {
|
|||||||
|
|
||||||
func GetPluginDirectory() string {
|
func GetPluginDirectory() string {
|
||||||
const name = "v2ray.location.plugin"
|
const name = "v2ray.location.plugin"
|
||||||
pluginDir := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecuableSubDir("plugins"))
|
pluginDir := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecutableSubDir("plugins"))
|
||||||
return pluginDir
|
return pluginDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user