forked from CringeStudios/gamja
Disallow server.{autoconnect,auth} mismatch in config.json
This combination doesn't make sense.
This commit is contained in:
parent
a603b79e33
commit
a13f74d466
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user