Disallow server.{autoconnect,auth} mismatch in config.json

This combination doesn't make sense.
This commit is contained in:
Simon Ser 2022-09-12 09:48:49 +02:00
parent a603b79e33
commit a13f74d466

View file

@ -275,6 +275,11 @@ export default class App extends Component {
if (typeof config.server.ping === "number") {
connectParams.ping = config.server.ping;
}
if (connectParams.autoconnect && config.server.auth === "mandatory") {
console.error("Error in config.json: cannot set server.autoconnect = true and server.auth = \"mandatory\"");
connectParams.autoconnect = false;
}
}
let autoconnect = store.autoconnect.load();