mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-25 15:21:44 +00:00
revert back to multiconfig
This commit is contained in:
1 parent
bda694dd8e
commit
8896ffdea8
19 files changed
+557
-83
No files matched your search
@@ -5,7 +5,8 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
_ "v2ray.com/core/infra/conf/command"
|
||||
commlog "v2ray.com/core/common/log"
|
||||
// _ "v2ray.com/core/infra/conf/command"
|
||||
"v2ray.com/core/infra/control"
|
||||
)
|
||||
|
||||
@@ -17,6 +18,8 @@ func getCommandName() string {
|
||||
}
|
||||
|
||||
func main() {
|
||||
// let the v2ctl prints log at stderr
|
||||
commlog.RegisterHandler(commlog.NewLogger(commlog.CreateStderrLogWriter()))
|
||||
name := getCommandName()
|
||||
cmd := control.GetCommand(name)
|
||||
if cmd == nil {
|
||||
|
||||
Reference in new issue
Block a user