mapper: move tail node conversion to node type (#2950)

This commit is contained in:
Kristoffer Dalby 2025-12-10 09:16:22 +01:00 committed by GitHub
parent 5d0a6ab0e9
commit c8376e44a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 234 additions and 234 deletions

View file

@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"io/fs"
"net/netip"
"net/url"
"os"
"path"
@ -259,11 +258,6 @@ func writeDebugMapResponse(
}
}
// routeFilterFunc is a function that takes a node ID and returns a list of
// netip.Prefixes that are allowed for that node. It is used to filter routes
// from the primary route manager to the node.
type routeFilterFunc func(id types.NodeID) []netip.Prefix
func (m *mapper) debugMapResponses() (map[types.NodeID][]tailcfg.MapResponse, error) {
if debugDumpMapResponsePath == "" {
return nil, nil