0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

Add comments for additional code

This commit is contained in:
RPRX
2020-12-10 07:38:59 +00:00
committed by GitHub
parent 9c0f0a0cd5
commit ee19bcc08c
4 changed files with 8 additions and 0 deletions

View File

@ -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)