mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed cookieipcheck set to none not handled correctly.
This commit is contained in:
parent
5ac74635c5
commit
26970b2f41
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ function CreateMeshCentralServer(config, args) {
|
|||
if (typeof obj.args.tlsoffload == 'string') { obj.args.tlsoffload = obj.args.tlsoffload.split(' ').join('').split(','); }
|
||||
|
||||
// Check the "cookieIpCheck" value
|
||||
if (obj.args.cookieipcheck === false) { obj.args.cookieipcheck = 'none'; }
|
||||
if ((obj.args.cookieipcheck === false) || (obj.args.cookieipcheck == 'none')) { obj.args.cookieipcheck = 'none'; }
|
||||
else if ((typeof obj.args.cookieipcheck != 'string') || (obj.args.cookieipcheck.toLowerCase() != 'strict')) { obj.args.cookieipcheck = 'lax'; }
|
||||
else { obj.args.cookieipcheck = 'strict'; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue