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:
David Anderson
2020-02-10 21:40:00 -08:00
parent 41d94cdcaa
commit a07906d1d8
2 changed files with 25 additions and 4 deletions

View File

@@ -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 {