ipn: add AdvertiseRoutes to Prefs.

This is a prelude to supporting relaynode's --routes in
tailscaled. The daemon needs to remembers routes to
advertise, and the CLI needs to be able to change the
set of advertised routes. Prefs is the thing used for
both of these.

Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson
2020-02-17 13:48:04 -08:00
parent 769e25e37b
commit a5b84fa921
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func checkPrefs(t *testing.T, p Prefs) {
}
p2 = p
p2.RouteAll = true
if p == p2 {
if p.Equals(&p2) {
t.Fatalf("p == p2\n")
}
p2b, err = PrefsFromBytes(p2.ToBytes(), false)