Handle new remote settings

This commit is contained in:
2019-11-25 13:37:16 -06:00
parent af68d20d42
commit c096118807
2 changed files with 3 additions and 1 deletions

View File

@@ -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."
},

View File

@@ -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 :