Commit 5d9b1f8b authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

swarm bugfix: dial peer out

parent e7d71338
......@@ -132,7 +132,7 @@ func (s *Swarm) Dial(peer *peer.Peer) (conn.Conn, error) {
Peerstore: s.peers,
}
c, err = d.Dial(s.ctx, "tcp", s.local)
c, err = d.Dial(s.ctx, "tcp", peer)
if err != nil {
return nil, err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment