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

@@ -105,6 +105,8 @@ class BtConfig {
bool seedKeep;
double seedRatio;
int seedTime;
bool disableDht;
bool disablePex;
BtConfig({
this.listenPort = 0,
@@ -112,6 +114,8 @@ class BtConfig {
this.seedKeep = false,
this.seedRatio = 0,
this.seedTime = 0,
this.disableDht = false,
this.disablePex = false,
});
factory BtConfig.fromJson(Map<String, dynamic> json) => _$BtConfigFromJson(json);