add PeriodicallyAnnounceTorrentsToDht opt

This commit is contained in:
nikk gitanes
2021-07-19 13:30:34 +03:00
parent fb1e5af2ad
commit ac74e2dc07
6 changed files with 12 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
const {
AcceptPeerCon,
AnnTorrentsToDht,
RetrackersMode,
TorrentDisconnectTimeout,
EnableIPv6,
@@ -85,6 +86,11 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
label={t('SettingsDialog.DHT')}
labelPlacement='start'
/>
<FormControlLabel
control={<Switch checked={AnnTorrentsToDht} onChange={inputForm} id='AnnTorrentsToDht' color='secondary' />}
label={t('SettingsDialog.AnnTorrentsToDht')}
labelPlacement='start'
/>
<FormControlLabel
control={<Switch checked={AcceptPeerCon} onChange={inputForm} id='AcceptPeerCon' color='secondary' />}
label={t('SettingsDialog.AcceptPeerCon')}

View File

@@ -1,5 +1,6 @@
export default {
AcceptPeerCon: true,
AnnTorrentsToDht: true,
CacheSize: 96,
ReaderReadAHead: 95,
UseDisk: false,

View File

@@ -85,6 +85,7 @@
"SelectSeason": "Select Season",
"SettingsDialog": {
"AcceptPeerCon": "Accept Peer Connections",
"AnnTorrentsToDht": "Periodically Announce Torrents To DHT",
"AddRetrackers": "Add retrackers",
"AdditionalSettings": "Additional Settings",
"CacheBeforeReaderDesc": "from cache will be saved before currently played frame",

View File

@@ -85,6 +85,7 @@
"SelectSeason": "Выбор сезона",
"SettingsDialog": {
"AcceptPeerCon": "Принимать входящие соединения",
"AnnTorrentsToDht": "Анонсировать торренты по DHT",
"AddRetrackers": "Добавлять",
"AdditionalSettings": "Дополнительные настройки",
"CacheBeforeReaderDesc": "от кеша будет оставаться позади воспроизводимого кадра",