From c56ff6989607fb441b99e0d5c4b9b290307a4a0f Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 24 Aug 2020 17:59:23 +0200 Subject: [PATCH] docs: typo --- resources/docs/docs/getting-started/server-configuration.md | 4 ++-- src/server/options.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/docs/docs/getting-started/server-configuration.md b/resources/docs/docs/getting-started/server-configuration.md index 033e49ed..aa834a31 100644 --- a/resources/docs/docs/getting-started/server-configuration.md +++ b/resources/docs/docs/getting-started/server-configuration.md @@ -95,7 +95,7 @@ The **server** can be configured with many options, either from a terminal or wi === "remote-saving" - Disable file saving for hosts that don't match the regular expresion. + Disable file saving for hosts that don't match the regular expression. Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`. @@ -165,7 +165,7 @@ Options name must be prepended with a double dash (`--`) in a terminal. open-stage-control --no-gui --load path/to/your/session.json --theme path/to/your/theme.css ``` - Launches the server in headless mode, and makes all clients load provided session and theme automatically. + Launches the server in headless mode, and makes all clients load provided session and theme automatically. ## Running in a terminal on Windows diff --git a/src/server/options.js b/src/server/options.js index 713b7cfb..85cd5e63 100644 --- a/src/server/options.js +++ b/src/server/options.js @@ -80,7 +80,7 @@ module.exports = { 'disable-vsync': {type: 'boolean', describe: 'disable gui\'s vertical synchronization', restart: true}, 'force-gpu': {type: 'boolean', describe: 'ignore chrome\'s gpu blacklist', restart: true}, 'read-only': {type: 'boolean', describe: 'disable session editing and session history changes'}, - 'remote-saving': {type: 'string', describe: 'disable remote session saving for hosts that don\'t match the regular expresion', + 'remote-saving': {type: 'string', describe: 'disable remote session saving for hosts that don\'t match the regular expression', check: (r, argv)=>{ var msg = true try {