mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +00:00
wgengine: make SetRoutesFunc less appealing to use.
It exists as a way to glue the mac-specific xcode logic with the OSS logic, and shouldn't be used by anything but the xcode glue.
This commit is contained in:
@@ -36,10 +36,6 @@ type RouteSettings struct {
|
||||
Cfg wgcfg.Config
|
||||
}
|
||||
|
||||
// Only used on darwin for now
|
||||
// TODO(apenwarr): This probably belongs in the darwinRouter struct.
|
||||
var SetRoutesFunc func(rs RouteSettings) error
|
||||
|
||||
func (rs *RouteSettings) OnlyRelevantParts() string {
|
||||
var peers [][]wgcfg.CIDR
|
||||
for _, p := range rs.Cfg.Peers {
|
||||
|
||||
Reference in New Issue
Block a user