From faee88163c84990650fe9b97a348d5894faaecfe Mon Sep 17 00:00:00 2001 From: ght99 <84271302+ght99@users.noreply.github.com> Date: Mon, 17 May 2021 00:44:08 +0800 Subject: [PATCH] Fix: v2ctl failed to get geodata loaders (#1014) Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> --- infra/control/main/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/control/main/main.go b/infra/control/main/main.go index 8c28fdde0..f189dccf0 100644 --- a/infra/control/main/main.go +++ b/infra/control/main/main.go @@ -5,7 +5,9 @@ import ( "fmt" "os" - commlog "github.com/v2fly/v2ray-core/v4/common/log" + "github.com/v2fly/v2ray-core/v4/common/log" + _ "github.com/v2fly/v2ray-core/v4/infra/conf/geodata/memconservative" + _ "github.com/v2fly/v2ray-core/v4/infra/conf/geodata/standard" "github.com/v2fly/v2ray-core/v4/infra/control" ) @@ -18,7 +20,7 @@ func getCommandName() string { func main() { // let the v2ctl prints log at stderr - commlog.RegisterHandler(commlog.NewLogger(commlog.CreateStderrLogWriter())) + log.RegisterHandler(log.NewLogger(log.CreateStderrLogWriter())) name := getCommandName() cmd := control.GetCommand(name) if cmd == nil {