mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-06 02:30:57 -08:00
parent
332fa2b825
commit
1a7c575011
36 changed files with 1925 additions and 165 deletions
|
|
@ -24,6 +24,7 @@ func Test_NewHandshakeManagerVpnIp(t *testing.T) {
|
|||
lh := &LightHouse{
|
||||
atomicStaticList: make(map[iputil.VpnIp]struct{}),
|
||||
atomicLighthouses: make(map[iputil.VpnIp]struct{}),
|
||||
addrMap: make(map[iputil.VpnIp]*RemoteList),
|
||||
}
|
||||
|
||||
blah := NewHandshakeManager(l, tuncidr, preferredRanges, mainHM, lh, &udp.Conn{}, defaultHandshakeConfig)
|
||||
|
|
@ -131,3 +132,9 @@ type mockEncWriter struct {
|
|||
func (mw *mockEncWriter) SendMessageToVpnIp(t header.MessageType, st header.MessageSubType, vpnIp iputil.VpnIp, p, nb, out []byte) {
|
||||
return
|
||||
}
|
||||
|
||||
func (mw *mockEncWriter) SendVia(via interface{}, relay interface{}, ad, nb, out []byte, nocopy bool) {
|
||||
return
|
||||
}
|
||||
|
||||
func (mw *mockEncWriter) Handshake(vpnIP iputil.VpnIp) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue