mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-24 22:26:05 +03:00
Commands: Comment some useless codes (#3681)
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
parent
08d1840344
commit
030c9efc8c
@ -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
|
||||
@ -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)
|
||||
*/
|
||||
CommandEnv.Exec = "xray"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user