Change the default client port
This commit is contained in:
parent
3c0588d661
commit
958ff01eab
|
@ -36,6 +36,7 @@ func TestingConfig() *ClientConfig {
|
|||
cfg.DisableTrackers = true
|
||||
cfg.NoDefaultPortForwarding = true
|
||||
cfg.DisableAcceptRateLimiting = true
|
||||
cfg.ListenPort = 0
|
||||
return cfg
|
||||
}
|
||||
|
||||
|
|
|
@ -164,6 +164,7 @@ func NewDefaultClientConfig() *ClientConfig {
|
|||
},
|
||||
CryptoSelector: mse.DefaultCryptoSelector,
|
||||
CryptoProvides: mse.AllSupportedCrypto,
|
||||
ListenPort: 42069,
|
||||
}
|
||||
cc.ConnTracker.SetNoMaxEntries()
|
||||
cc.ConnTracker.Timeout = func(conntrack.Entry) time.Duration { return 0 }
|
||||
|
|
|
@ -189,6 +189,7 @@ func TestDownloadOnDemand(t *testing.T) {
|
|||
cfg.DisableTCP = true
|
||||
cfg.DefaultStorage = storage.NewMMap(filepath.Join(layout.BaseDir, "download"))
|
||||
cfg.ListenHost = torrent.LoopbackListenHost
|
||||
cfg.ListenPort = 0
|
||||
leecher, err := torrent.NewClient(cfg)
|
||||
require.NoError(t, err)
|
||||
testutil.ExportStatusWriter(leecher, "l")()
|
||||
|
|
Loading…
Reference in New Issue