Add RCON server management support, adds Windows support

This commit is contained in:
timvisee
2021-11-09 01:12:46 +01:00
parent ba2100f015
commit d109b2bf32
14 changed files with 774 additions and 35 deletions

View File

@@ -69,6 +69,9 @@ pub struct Config {
/// Messages, shown to the user.
pub messages: Messages,
/// RCON configuration.
pub rcon: Rcon,
/// Advanced configuration.
pub advanced: Advanced,
}
@@ -132,6 +135,22 @@ pub struct Messages {
pub login_starting: String,
}
/// RCON configuration.
#[derive(Debug, Deserialize)]
pub struct Rcon {
/// Enable sleeping server through RCON.
pub enabled: bool,
/// Server RCON port.
pub port: u16,
/// Server RCON password.
pub password: String,
/// Randomize ingress server RCON password on each start.
pub randomize_password: bool,
}
/// Advanced configuration.
#[derive(Debug, Deserialize)]
pub struct Advanced {