From ee19bcc08ce9bd86aa152a3f0f9958d91a031532 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Thu, 10 Dec 2020 07:38:59 +0000 Subject: [PATCH] Add comments for additional code --- app/log/command/command.go | 2 ++ app/proxyman/command/command.go | 2 ++ app/router/command/command.go | 2 ++ app/stats/command/command.go | 2 ++ 4 files changed, 8 insertions(+) diff --git a/app/log/command/command.go b/app/log/command/command.go index ce8d8a59..d2dd0f5a 100644 --- a/app/log/command/command.go +++ b/app/log/command/command.go @@ -44,6 +44,8 @@ func (s *service) Register(server *grpc.Server) { V: s.v, } RegisterLoggerServiceServer(server, ls) + + // For compatibility purposes vCoreDesc := _LoggerService_serviceDesc vCoreDesc.ServiceName = "v2ray.core.app.log.command.LoggerService" server.RegisterService(&vCoreDesc, ls) diff --git a/app/proxyman/command/command.go b/app/proxyman/command/command.go index da853816..a7b36159 100644 --- a/app/proxyman/command/command.go +++ b/app/proxyman/command/command.go @@ -140,6 +140,8 @@ func (s *service) Register(server *grpc.Server) { hs.ohm = om })) RegisterHandlerServiceServer(server, hs) + + // For compatibility purposes vCoreDesc := _HandlerService_serviceDesc vCoreDesc.ServiceName = "v2ray.core.app.proxyman.command.HandlerService" server.RegisterService(&vCoreDesc, hs) diff --git a/app/router/command/command.go b/app/router/command/command.go index f6be1fd8..e38defe4 100644 --- a/app/router/command/command.go +++ b/app/router/command/command.go @@ -85,6 +85,8 @@ func (s *service) Register(server *grpc.Server) { common.Must(s.v.RequireFeatures(func(router routing.Router, stats stats.Manager) { rs := NewRoutingServer(router, nil) RegisterRoutingServiceServer(server, rs) + + // For compatibility purposes vCoreDesc := _RoutingService_serviceDesc vCoreDesc.ServiceName = "v2ray.core.app.router.command.RoutingService" server.RegisterService(&vCoreDesc, rs) diff --git a/app/stats/command/command.go b/app/stats/command/command.go index cf3519c3..d6ac705c 100644 --- a/app/stats/command/command.go +++ b/app/stats/command/command.go @@ -113,6 +113,8 @@ type service struct { func (s *service) Register(server *grpc.Server) { ss := NewStatsServer(s.statsManager) RegisterStatsServiceServer(server, ss) + + // For compatibility purposes vCoreDesc := _StatsService_serviceDesc vCoreDesc.ServiceName = "v2ray.core.app.stats.command.StatsService" server.RegisterService(&vCoreDesc, ss)