From c096118807099b150c014e526febe9bc266b9fc6 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 25 Nov 2019 13:37:16 -0600 Subject: [PATCH] Handle new remote settings --- src/assets/settings.json | 2 ++ src/containers/Configuration/Configuration.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/assets/settings.json b/src/assets/settings.json index 9aea911..66affa1 100644 --- a/src/assets/settings.json +++ b/src/assets/settings.json @@ -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." }, diff --git a/src/containers/Configuration/Configuration.js b/src/containers/Configuration/Configuration.js index 6b63a1c..30b1239 100644 --- a/src/containers/Configuration/Configuration.js +++ b/src/containers/Configuration/Configuration.js @@ -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 :