mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Disallow server.{autoconnect,auth} mismatch in config.json
This combination doesn't make sense.
This commit is contained in:
parent
a603b79e33
commit
a13f74d466
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue