Fix executable typo

pull/934/head
Jinqiu Yu 2018-03-08 17:32:36 +08:00
parent 2c854057f7
commit 8864195b50
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func getExecutableDir() string {
return filepath.Dir(exec)
}
func getExecuableSubDir(dir string) func() string {
func getExecutableSubDir(dir string) func() string {
return func() string {
return filepath.Join(getExecutableDir(), dir)
}
@ -67,7 +67,7 @@ func GetAssetLocation(file string) string {
func GetPluginDirectory() string {
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
}