4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-11 02:36:28 +00:00

It works, sort of, amazingly

This commit is contained in:
Neil Alexander
2019-04-22 23:58:59 +01:00
parent e1a2d666bf
commit d7a1c04748
3 changed files with 41 additions and 46 deletions

View File

@ -458,12 +458,12 @@ func (ss *sessions) handlePing(ping *sessionPing) {
// TODO: this should not block if nothing is accepting
if !ping.IsPong && ss.listener != nil {
conn := &Conn{
core: ss.core,
session: sinfo,
mutex: &sync.RWMutex{},
nodeID: crypto.GetNodeID(&sinfo.theirPermPub),
nodeMask: &crypto.NodeID{},
recv: sinfo.recv,
core: ss.core,
session: sinfo,
mutex: &sync.RWMutex{},
nodeID: crypto.GetNodeID(&sinfo.theirPermPub),
nodeMask: &crypto.NodeID{},
searchwait: make(chan interface{}),
}
for i := range conn.nodeMask {
conn.nodeMask[i] = 0xFF