mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
It works, sort of, amazingly
This commit is contained in:
parent
e1a2d666bf
commit
d7a1c04748
3 changed files with 41 additions and 46 deletions
|
@ -59,11 +59,11 @@ func (d *Dialer) Dial(network, address string) (Conn, error) {
|
|||
// NodeID parameters.
|
||||
func (d *Dialer) DialByNodeIDandMask(nodeID, nodeMask *crypto.NodeID) (Conn, error) {
|
||||
conn := Conn{
|
||||
core: d.core,
|
||||
mutex: &sync.RWMutex{},
|
||||
nodeID: nodeID,
|
||||
nodeMask: nodeMask,
|
||||
recv: make(chan *wire_trafficPacket, 32),
|
||||
core: d.core,
|
||||
mutex: &sync.RWMutex{},
|
||||
nodeID: nodeID,
|
||||
nodeMask: nodeMask,
|
||||
searchwait: make(chan interface{}),
|
||||
}
|
||||
return conn, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue