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

Fix: Code generator & API (#52)

This commit is contained in:
JimhHan
2020-12-10 11:52:05 +08:00
committed by GitHub
parent f1eb5e3d08
commit 9c0f0a0cd5
12 changed files with 71 additions and 106 deletions

View File

@ -83,7 +83,11 @@ type service struct {
func (s *service) Register(server *grpc.Server) {
common.Must(s.v.RequireFeatures(func(router routing.Router, stats stats.Manager) {
RegisterRoutingServiceServer(server, NewRoutingServer(router, nil))
rs := NewRoutingServer(router, nil)
RegisterRoutingServiceServer(server, rs)
vCoreDesc := _RoutingService_serviceDesc
vCoreDesc.ServiceName = "v2ray.core.app.router.command.RoutingService"
server.RegisterService(&vCoreDesc, rs)
}))
}