1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 02:30:39 +08:00

secured net logs

This commit is contained in:
Juan Batiz-Benet
2014-09-19 05:51:31 -07:00
committed by Brian Tiger Chow
parent 1439a53b15
commit f7634611e6

View File

@ -101,12 +101,14 @@ func (s *Swarm) connSetup(c *conn.Conn) error {
return errors.New("Tried to start nil connection.")
}
u.DOut("Starting connection: %s\n", c.Peer.Key().Pretty())
// u.DOut("Starting connection: %s\n", c.Peer.Key().Pretty())
if err := s.connSecure(c); err != nil {
return fmt.Errorf("Conn securing error: %v", err)
}
// u.DOut("Secured connection: %s\n", c.Peer.Key().Pretty())
// add to conns
s.connsLock.Lock()
if _, ok := s.conns[c.Peer.Key()]; ok {