Add RCON server management support, adds Windows support
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user