guard against misconfiguration of fileHost setting

This commit is contained in:
ansuz 2025-08-02 15:58:17 +05:30
parent 6820c85245
commit 12873bc9ca

View File

@ -98,7 +98,7 @@ module.exports.create = function (config) {
protocol: new URL(httpUnsafeOrigin).protocol,
fileHost: config.fileHost || undefined,
fileHost: config.fileHost? new URL(config.fileHost).origin : undefined,
NO_SANDBOX: NO_SANDBOX,
httpSafePort: httpSafePort,
websocketPort: config.websocketPort,