Handle new remote settings
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
},
|
||||
"RemoteMount": {
|
||||
"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.",
|
||||
"RemoteMaxConnections": "Maximum number of TCP connections to use when communicating with remote instances.",
|
||||
"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."
|
||||
},
|
||||
|
||||
@@ -233,7 +233,7 @@ class Configuration extends IPCContainer {
|
||||
const isRemoteMount = JSON.parse(itemList.find(s => s.label === 'IsRemoteMount').value);
|
||||
const enableRemoteMount = !isRemoteMount &&
|
||||
JSON.parse(itemList.find(s => s.label === 'EnableRemoteMount').value);
|
||||
return (item.label === 'RemoteHostNameOrIp') ?
|
||||
return (item.label === 'RemoteHostNameOrIp') || (item.label === 'RemoteMaxConnections') ?
|
||||
isRemoteMount :
|
||||
(item.label === 'RemotePort') || (item.label === 'RemoteToken') ?
|
||||
isRemoteMount || enableRemoteMount :
|
||||
|
||||
Reference in New Issue
Block a user