code: func (p *Process) DialInfo() *mgo.DialInfo {
  	localhost := net.JoinHostPort("localhost", p.Port)
  	info := &mgo.DialInfo{
  		Addrs:   []string{localhost},
  		Timeout: 5 * time.Second,
  		Direct:  true,
  	}
  
  	if p.securityEnabled() {
  		info.Addrs = []string{p.addr()}
  		info.Database = "admin"
  		info.Username = "flynn"
  		info.Password = p.Password
  	}
  	return info
  }
docs: // DialInfo returns dial info for connecting to the local process as the "flynn" user.