remote-file: add --remote-root option for security

This commit is contained in:
jean-emmanuel 2019-04-04 22:31:17 +02:00
parent e6394746e3
commit 03812933c5
4 changed files with 9 additions and 1 deletions

View file

@ -76,6 +76,7 @@ var makeDefaultConfig = function(argv){
noGpu: argv['disable-gpu'] || false,
readOnly: argv['read-only'] || false,
remoteSaving: argv['remote-saving'] ? RegExp(argv['remote-saving']) : false,
remoteRoot: argv['remote-root'] || false,
midi: argv['midi'],
stateFile: (function(){
if (!argv['state']) return false