Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
171
func
hasWGPeer(n *core.Nylon, key state.NyPublicKey) bool {
172
return
n.Device.LookupPeer(device.NoisePublicKey(key)) != nil
173
}
Callers
1
TestApplyCentralConfigRemovesNeighbourFromLiveNode
Function · 0.85
Calls
2
NoisePublicKey
TypeAlias · 0.92
LookupPeer
Method · 0.80
Tested by
no test coverage detected