code: func (s *server) outboundPeerConnected(c *connmgr.ConnReq, conn net.Conn) {
  	sp := newServerPeer(s, c.Permanent)
  	p, err := peer.NewOutboundPeer(newPeerConfig(sp), c.Addr.String())
  	if err != nil {
  		srvrLog.Debugf("Cannot create outbound peer %s: %v", c.Addr, err)
  		s.connManager.Disconnect(c.ID())
  	}
  	sp.Peer = p
  	sp.connReq = c
  	sp.isWhitelisted = isWhitelisted(conn.RemoteAddr())
  	sp.AssociateConnection(conn)
  	go s.peerDoneHandler(sp)
  	s.addrManager.Attempt(sp.NA())
  }
docs: // outboundPeerConnected is invoked by the connection manager when a new
  // outbound connection is established.  It initializes a new outbound server
  // peer instance, associates it with the relevant state such as the connection
  // request instance and the connection itself, and finally notifies the address
  // manager of the attempt.