Disallow URL override of network-related fields on the client when the network is locked
This commit is contained in:
parent
8a71d1df70
commit
174c6c744c
@ -176,6 +176,12 @@ function parseOverrideParams(params, data) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// When the network is locked, URL overrides should not affect disabled fields
|
||||
if (data.lockNetwork &&
|
||||
["host", "port", "tls", "rejectUnauthorized"].includes(key)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (key === "join") {
|
||||
value = value.split(",").map((chan) => {
|
||||
if (!chan.match(/^[#&!+]/)) {
|
||||
|
Loading…
Reference in New Issue
Block a user