MCPcopy Index your code
hub / github.com/coder/coder / validForWireguard

Method validForWireguard

tailnet/configmaps.go:758–764  ·  view source on GitHub ↗

validForWireguard returns true if the peer is ready to be programmed into wireguard.

()

Source from the content-addressed store, hash-verified

756// validForWireguard returns true if the peer is ready to be programmed into
757// wireguard.
758func (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.

Callers 1

updatePeerLockedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected