7 func TestingConfig(t testing.TB) *ClientConfig {
8 cfg := NewDefaultClientConfig()
9 cfg.ListenHost = LoopbackListenHost
11 cfg.DataDir = t.TempDir()
12 cfg.DisableTrackers = true
13 cfg.NoDefaultPortForwarding = true
14 cfg.DisableAcceptRateLimiting = true
17 //cfg.Logger = cfg.Logger.WithText(func(m log.Msg) string {
19 // m.Values(func(i interface{}) bool {
20 // t += fmt.Sprintf("\n%[1]T: %[1]v", i)