add AcceptPeerCon and sync server options

This commit is contained in:
nikk gitanes
2021-07-19 05:21:19 +03:00
parent 97f8aa3cbc
commit d85ff5ede4
6 changed files with 16 additions and 21 deletions

View File

@@ -8,6 +8,7 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
const { t } = useTranslation()
const {
AcceptPeerCon,
RetrackersMode,
TorrentDisconnectTimeout,
EnableIPv6,
@@ -21,7 +22,6 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
DownloadRateLimit,
UploadRateLimit,
ConnectionsLimit,
DhtConnectionLimit,
PeersListenPort,
} = settings || {}
@@ -85,15 +85,10 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
label={t('SettingsDialog.DHT')}
labelPlacement='start'
/>
<TextField
onChange={inputForm}
margin='normal'
id='DhtConnectionLimit'
label={t('SettingsDialog.DhtConnectionLimit')}
value={DhtConnectionLimit}
type='number'
variant='outlined'
fullWidth
<FormControlLabel
control={<Switch checked={AcceptPeerCon} onChange={inputForm} id='AcceptPeerCon' color='secondary' />}
label={t('SettingsDialog.AcceptPeerCon')}
labelPlacement='start'
/>
<br />
<TextField

View File

@@ -1,11 +1,11 @@
export default {
AcceptPeerCon: true,
CacheSize: 96,
ReaderReadAHead: 95,
UseDisk: false,
UploadRateLimit: 0,
TorrentsSavePath: '',
ConnectionsLimit: 23,
DhtConnectionLimit: 500,
DisableDHT: false,
DisablePEX: false,
DisableTCP: false,
@@ -20,6 +20,5 @@ export default {
PreloadCache: 0,
RemoveCacheOnDrop: false,
RetrackersMode: 1,
Strategy: 0,
TorrentDisconnectTimeout: 30,
}

View File

@@ -84,6 +84,7 @@
"Seconds": "Seconds",
"SelectSeason": "Select Season",
"SettingsDialog": {
"AcceptPeerCon": "Accept Peer Connections",
"AddRetrackers": "Add retrackers",
"AdditionalSettings": "Additional Settings",
"CacheBeforeReaderDesc": "from cache will be saved before currently played frame",

View File

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