Skip to content

Commit

Permalink
Commands: Comment some useless codes (XTLS#3681)
Browse files Browse the repository at this point in the history
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
  • Loading branch information
2 people authored and leninalive committed Oct 29, 2024
1 parent 575c302 commit 2e7dab0
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions main/commands/base/env.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package base

import (
"os"
"path"
)

// CommandEnvHolder is a struct holds the environment info of commands
type CommandEnvHolder struct {
// Executable name of current binary
Expand All @@ -17,10 +12,12 @@ type CommandEnvHolder struct {
var CommandEnv CommandEnvHolder

func init() {
exec, err := os.Executable()
if err != nil {
return
}
CommandEnv.Exec = path.Base(exec)
/*
exec, err := os.Executable()
if err != nil {
return
}
CommandEnv.Exec = path.Base(exec)
*/
CommandEnv.Exec = "xray"
}

0 comments on commit 2e7dab0

Please sign in to comment.