mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-17 16:36:02 +00:00
app: remove gRPC reflection from remote server
Reflection is a streaming RPC and bypasses the unary auth interceptor on the remote (TCP) gRPC server. Remove it there; the unix-socket server retains it for local debugging.
This commit is contained in:
parent
adb9467f60
commit
f7d8bb8b3f
1 changed files with 0 additions and 1 deletions
|
|
@ -727,7 +727,6 @@ func (h *Headscale) Serve() error {
|
|||
grpcServer = grpc.NewServer(grpcOptions...)
|
||||
|
||||
v1.RegisterHeadscaleServiceServer(grpcServer, newHeadscaleV1APIServer(h))
|
||||
reflection.Register(grpcServer)
|
||||
|
||||
grpcListener, err = new(net.ListenConfig).Listen(context.Background(), "tcp", h.cfg.GRPCAddr)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue