validForWireguard returns true if the peer is ready to be programmed into wireguard.
()
| 756 | // validForWireguard returns true if the peer is ready to be programmed into |
| 757 | // wireguard. |
| 758 | func (l *peerLifecycle) validForWireguard() bool { |
| 759 | valid := l.node != nil |
| 760 | if l.isDestination { |
| 761 | return valid && l.readyForHandshake |
| 762 | } |
| 763 | return valid |
| 764 | } |
| 765 | |
| 766 | // prefixesDifferent returns true if the two slices contain different prefixes |
| 767 | // where order doesn't matter. |