mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Fix: Code generator & API (#52)
This commit is contained in:
parent
f1eb5e3d08
commit
9c0f0a0cd5
12 changed files with 71 additions and 106 deletions
|
@ -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)
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue