mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-25 10:01:28 +00: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
|
package base
|
||||||
|
|
||||||
import (
|
|
||||||
"os"
|
|
||||||
"path"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CommandEnvHolder is a struct holds the environment info of commands
|
// CommandEnvHolder is a struct holds the environment info of commands
|
||||||
type CommandEnvHolder struct {
|
type CommandEnvHolder struct {
|
||||||
// Executable name of current binary
|
// Executable name of current binary
|
||||||
|
@ -17,10 +12,12 @@ type CommandEnvHolder struct {
|
||||||
var CommandEnv CommandEnvHolder
|
var CommandEnv CommandEnvHolder
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
exec, err := os.Executable()
|
/*
|
||||||
if err != nil {
|
exec, err := os.Executable()
|
||||||
return
|
if err != nil {
|
||||||
}
|
return
|
||||||
CommandEnv.Exec = path.Base(exec)
|
}
|
||||||
|
CommandEnv.Exec = path.Base(exec)
|
||||||
|
*/
|
||||||
CommandEnv.Exec = "xray"
|
CommandEnv.Exec = "xray"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue