mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
Fixed x-forwarded-host where multiple hosts are specified.
This commit is contained in:
@@ -1623,8 +1623,7 @@ function CreateMeshCentralServer(config, args) {
|
||||
}
|
||||
|
||||
// Setup and start the legacy swarm server
|
||||
if ((obj.certificates.swarmserver != null) && (obj.args.swarmport !== 0)) {
|
||||
if (obj.args.swarmport == null) { obj.args.swarmport = 8080; }
|
||||
if ((obj.certificates.swarmserver != null) && (obj.args.swarmport != null) && (obj.args.swarmport !== 0)) {
|
||||
obj.swarmserver = require('./swarmserver.js').CreateSwarmServer(obj, obj.db, obj.args, obj.certificates);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user