mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
feat(bt): support disabling DHT and PEX (#1555)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user