mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 10:35:59 +00:00
server: rTorrent: convert directoryDefault to string
Bug: Mika-/torrent-control#105
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {numberTransformer, stringTransformer, stringArrayTransformer} from '../../util/rTorrentMethodCallUtil';
|
||||
import {numberTransformer, stringArrayTransformer} from '../../util/rTorrentMethodCallUtil';
|
||||
|
||||
const clientSettingMethodCallConfigs = {
|
||||
dht: {
|
||||
@@ -14,7 +14,10 @@ const clientSettingMethodCallConfigs = {
|
||||
},
|
||||
directoryDefault: {
|
||||
methodCall: 'directory.default',
|
||||
transformValue: stringTransformer,
|
||||
transformValue: (value: unknown) => {
|
||||
const [directory] = value as Array<string>;
|
||||
return directory;
|
||||
},
|
||||
},
|
||||
networkHttpMaxOpen: {
|
||||
methodCall: 'network.http.max_open',
|
||||
|
||||
Reference in New Issue
Block a user