ipn: handle advertised routes provided by frontend.

Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson
2020-02-17 19:33:01 -08:00
committed by Dave Anderson
parent 5d79530caa
commit 47da432991
6 changed files with 177 additions and 13 deletions
+6 -1
View File
@@ -220,7 +220,7 @@ type Hostinfo struct {
Services []Service `json:",omitempty"` // services advertised by this machine
// NOTE: any new fields containing pointers in this type
// require changes to Hostinfo.Copy.
// require changes to Hostinfo.Copy and Hostinfo.Equal.
}
// Copy makes a deep copy of Hostinfo.
@@ -234,6 +234,11 @@ func (hinfo *Hostinfo) Copy() (res *Hostinfo) {
return res
}
// Equal reports whether h and h2 are equal.
func (h *Hostinfo) Equal(h2 *Hostinfo) bool {
return reflect.DeepEqual(h, h2)
}
type RegisterRequest struct {
Version int
NodeKey NodeKey