Disallow server.{autoconnect,auth} mismatch in config.json
This combination doesn't make sense.
This commit is contained in:
1 parent
a603b79e33
commit
a13f74d466
1 file changed
+5
@@ -275,6 +275,11 @@ export default class App extends Component {
|
|||||||
if (typeof config.server.ping === "number") {
|
if (typeof config.server.ping === "number") {
|
||||||
connectParams.ping = config.server.ping;
|
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();
|
let autoconnect = store.autoconnect.load();
|
||||||
|
|||||||
Reference in new issue
Block a user