set default when root is not defined

This commit is contained in:
Kevin Godell 2023-03-20 16:32:14 -05:00
parent 4667e76c6b
commit 889489e33e
1 changed files with 2 additions and 2 deletions

View File

@ -316,10 +316,10 @@ httpsPromise.then(function(startupHttps) {
} else {
continue;
}
sp.subRoot = formatRoot(sp.root);
sp.subRoot = formatRoot(sp.root || "/");
sp.root = formatRoot(path.posix.join(settings.httpStaticRoot,sp.subRoot));
}
settings.httpStatic = sanitised.length ? sanitised : false;
settings.httpStatic = sanitised.length ? sanitised : false;
}
// if we got a port from command line, use it (even if 0)