feat(bt): support disabling DHT and PEX (#1555)

This commit is contained in:
Junker der Provinz authored and GitHub committed 2026-10-17 11:22:34 +08:00
1 parent eee39e012f
commit 5462b14705
30 files changed
+149

No files matched your search

+4
View File
@@ -9,4 +9,8 @@ type config struct {
SeedRatio float64 `json:"seedRatio"`
// SeedTime is the time in seconds to seed after downloading is complete.
SeedTime int64 `json:"seedTime"`
// DisableDHT and DisablePEX turn off DHT and PEX peer discovery. Like ListenPort,
// they are read when the shared client is built.
DisableDHT bool `json:"disableDht"`
DisablePEX bool `json:"disablePex"`
}