Handle new remote settings
This commit is contained in:
@@ -8,7 +8,9 @@
|
|||||||
},
|
},
|
||||||
"RemoteMount": {
|
"RemoteMount": {
|
||||||
"EnableRemoteMount": "Allow mounting this location over TCP.",
|
"EnableRemoteMount": "Allow mounting this location over TCP.",
|
||||||
|
"RemoteClientPoolSize": "Number of threads to use for each unique client.",
|
||||||
"RemoteHostNameOrIp": "Host name or IP of host to connect to for remote mounting.",
|
"RemoteHostNameOrIp": "Host name or IP of host to connect to for remote mounting.",
|
||||||
|
"RemoteMaxConnections": "Maximum number of TCP connections to use when communicating with remote instances.",
|
||||||
"RemotePort": "TCP port used for remote mounting.",
|
"RemotePort": "TCP port used for remote mounting.",
|
||||||
"RemoteToken": "Encryption token used for remote mounts. This value must be the same on local and remote systems."
|
"RemoteToken": "Encryption token used for remote mounts. This value must be the same on local and remote systems."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ class Configuration extends IPCContainer {
|
|||||||
const isRemoteMount = JSON.parse(itemList.find(s => s.label === 'IsRemoteMount').value);
|
const isRemoteMount = JSON.parse(itemList.find(s => s.label === 'IsRemoteMount').value);
|
||||||
const enableRemoteMount = !isRemoteMount &&
|
const enableRemoteMount = !isRemoteMount &&
|
||||||
JSON.parse(itemList.find(s => s.label === 'EnableRemoteMount').value);
|
JSON.parse(itemList.find(s => s.label === 'EnableRemoteMount').value);
|
||||||
return (item.label === 'RemoteHostNameOrIp') ?
|
return (item.label === 'RemoteHostNameOrIp') || (item.label === 'RemoteMaxConnections') ?
|
||||||
isRemoteMount :
|
isRemoteMount :
|
||||||
(item.label === 'RemotePort') || (item.label === 'RemoteToken') ?
|
(item.label === 'RemotePort') || (item.label === 'RemoteToken') ?
|
||||||
isRemoteMount || enableRemoteMount :
|
isRemoteMount || enableRemoteMount :
|
||||||
|
|||||||
Reference in New Issue
Block a user