diff --git a/pkg/v2ray-manager/manager.go b/pkg/v2ray-manager/manager.go index 8c2425f..0c4b9e2 100644 --- a/pkg/v2ray-manager/manager.go +++ b/pkg/v2ray-manager/manager.go @@ -34,6 +34,7 @@ type TrafficInfo struct { } func NewManager(addr, tag string, l *slog.Logger) (*Manager, error) { + slog.Info("create new mgr", "addr", addr) cc, err := grpc.Dial(addr, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { slog.Error("grpc dail failed", "addr", addr) diff --git a/server/manager.go b/server/manager.go index 3a87ea8..333e6ae 100644 --- a/server/manager.go +++ b/server/manager.go @@ -23,7 +23,6 @@ func getV2rayManager() ([]*v2raymanager.Manager, error) { } vms[k] = vm } - return vms, nil }