ipn: handle advertised routes provided by frontend.
Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
committed by
Dave Anderson
parent
5d79530caa
commit
47da432991
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user