nodeConciseEqual reports whether a and b are equal for the fields accessed by printPeerConcise.
(a, b tailcfg.NodeView)
| 420 | |
| 421 | // nodeConciseEqual reports whether a and b are equal for the fields accessed by printPeerConcise. |
| 422 | func nodeConciseEqual(a, b tailcfg.NodeView) bool { |
| 423 | return a.Key() == b.Key() && |
| 424 | a.HomeDERP() == b.HomeDERP() && |
| 425 | a.DiscoKey() == b.DiscoKey() && |
| 426 | views.SliceEqual(a.AllowedIPs(), b.AllowedIPs()) && |
| 427 | views.SliceEqual(a.Endpoints(), b.Endpoints()) |
| 428 | } |
| 429 | |
| 430 | func (b *NetworkMap) ConciseDiffFrom(a *NetworkMap) string { |
| 431 | var diff strings.Builder |
no test coverage detected
searching dependent graphs…