MCPcopy Create free account
hub / github.com/encodeous/nylon / hasWGPeer

Function hasWGPeer

integration/apply_config_test.go:171–173  ·  view source on GitHub ↗
(n *core.Nylon, key state.NyPublicKey)

Source from the content-addressed store, hash-verified

169}
170
171func hasWGPeer(n *core.Nylon, key state.NyPublicKey) bool {
172 return n.Device.LookupPeer(device.NoisePublicKey(key)) != nil
173}

Calls 2

NoisePublicKeyTypeAlias · 0.92
LookupPeerMethod · 0.80

Tested by

no test coverage detected