mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-09 08:10:06 +09:00
all: remove dead gRPC config, tests, and helpers
Drop grpc_listen_addr/grpc_allow_insecure config, the gRPC auth integration tests, GrpcSocketDialer, and stale gRPC comments now that the API is HTTP-only.
This commit is contained in:
@@ -524,10 +524,9 @@ func (node *Node) AnnouncedRoutes() []netip.Prefix {
|
||||
// of the subnet-router-as-source identity.
|
||||
//
|
||||
// IMPORTANT: This method is used for internal data structures and should NOT be
|
||||
// used for the gRPC Proto conversion. For Proto, SubnetRoutes must be populated
|
||||
// manually with PrimaryRoutes to ensure it includes only routes actively served
|
||||
// by the node. See the comment in [Node.Proto] method and the implementation in
|
||||
// grpcv1.go/nodesToProto.
|
||||
// used to populate the API SubnetRoutes field. For the API, SubnetRoutes must be
|
||||
// populated manually with PrimaryRoutes to ensure it includes only routes
|
||||
// actively served by the node. See hscontrol/api/v1/nodes.go.
|
||||
func (node *Node) SubnetRoutes() []netip.Prefix {
|
||||
var routes []netip.Prefix
|
||||
|
||||
|
||||
Reference in New Issue
Block a user