mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
guard against misconfiguration of fileHost setting
This commit is contained in:
parent
6820c85245
commit
12873bc9ca
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user