Browse Source

Merge pull request #934 from yujinqiu/fix-execute-typo

Fix executable typo
DarienRaymond 7 năm trước cách đây
mục cha
commit
51bd5132f6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      common/platform/platform.go

+ 2 - 2
common/platform/platform.go

@@ -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
 }