mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-28 21:18:54 +03:00
feat: additional connection settings #317
This commit is contained in:
parent
f474709d4f
commit
54b345682f
3 changed files with 23 additions and 1 deletions
|
@ -1,5 +1,17 @@
|
|||
<template>
|
||||
<v-card flat>
|
||||
<v-col cols="5" class="pb-0 mt-2">
|
||||
<v-select v-model="settings.bittorrent_protocol" outlined dense small-chips :items="bittorrent_protocol" :label="$t('modals.settings.pageConnection.protocol')" />
|
||||
</v-col>
|
||||
<v-subheader>
|
||||
{{ $t('modals.settings.pageConnection.listeningSubHeader') }}
|
||||
</v-subheader>
|
||||
<v-list-item>
|
||||
<v-text-field v-model="settings.listen_port" class="mb-2" outlined dense type="number" hide-details :label="$t('modals.settings.pageConnection.incomingConnectionPort')" />
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-checkbox v-model="settings.upnp" hide-details class="ma-0 pa-0" :label="$t('modals.settings.pageConnection.useUPnP')" />
|
||||
</v-list-item>
|
||||
<v-subheader>
|
||||
{{ $t('modals.settings.pageConnection.subHeader') }}
|
||||
</v-subheader>
|
||||
|
@ -117,6 +129,11 @@ export default {
|
|||
value: 5,
|
||||
text: 'SOCKS4 proxy without authentication'
|
||||
}
|
||||
],
|
||||
bittorrent_protocol: [
|
||||
{ value: 0, text: 'TCP and μTP' },
|
||||
{ value: 1, text: 'TCP' },
|
||||
{ value: 2, text: 'μTP' },
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -185,6 +185,10 @@ const locale = {
|
|||
}
|
||||
},
|
||||
pageConnection: {
|
||||
protocol: 'Peer connection protocol',
|
||||
listeningSubHeader: 'Listening Port',
|
||||
useUPnP: 'Use UPnP / NAT-PMP port forwarding from my router',
|
||||
incomingConnectionPort: 'Port used for incoming connections',
|
||||
subHeader: 'Connection Limits',
|
||||
globalMaxConnection: 'Global maximum number of connections',
|
||||
perTorrentMaxConnection: 'Maximum number of connections per torrent',
|
||||
|
|
|
@ -29,6 +29,7 @@ export function generateTorrent(data: any): Torrent {
|
|||
num_complete: faker.datatype.number({ min: 1, max: 500 }),
|
||||
num_seeds: faker.datatype.number({ min: 1, max: 25 }),
|
||||
num_incomplete: faker.datatype.number({ min: 1, max: 500 }),
|
||||
save_path: faker.system.filePath()
|
||||
save_path: faker.system.filePath(),
|
||||
category: faker.helpers.arrayElement(['ISO', 'Other', 'Movie', 'Music', 'TV'])
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue