kubo/p2p
Juan Batiz-Benet ddd5c4faee p2p/net/swarm: fix connect self problems
This adds two checks after a successful conn.Dial
* if the remote peer is not who we wanted, close conn
* if the remove peer is outselves, close conn

(the second is redundant, but the codebase may evolve to
end up disabling the first check, so keeping the second
in place helps)

note:
Loopback addresses are actually sent out (they _have to be_,
in cases where there are >1 node in the same machine), so
many times when trying connections, nodes end up dialing
themselves.
2015-01-12 20:17:54 -08:00
..
crypto test: benchmark Sign and Verify operations 2015-01-09 17:24:05 -08:00
host swap net2 -> net 2015-01-02 08:46:46 -08:00
net p2p/net/swarm: fix connect self problems 2015-01-12 20:17:54 -08:00
peer peer/queue: close fix, and logging 2015-01-05 04:55:02 -08:00
protocol vendor identify pb 2015-01-02 08:46:47 -08:00
test swarm addr checks 2015-01-09 06:22:27 -08:00