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