revert back to multiconfig

This commit is contained in:
vcptr committed 2020-01-03 09:26:48 +08:00
1 parent bda694dd8e
commit 8896ffdea8
19 files changed
+557 -83

No files matched your search

+4 -1
View File
@@ -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 {