Moved config into its own crate

This commit is contained in:
DaniD3v committed 2024-08-31 19:38:47 +02:00
1 parent a17ed23b00
commit 070a50833b
21 files changed
+48 -29

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
use std::net::{Ipv4Addr, SocketAddr};
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize, Clone)]
pub struct RCONConfig {
pub enabled: bool,
pub address: SocketAddr,
pub password: String,
}
impl Default for RCONConfig {
fn default() -> Self {
Self {
enabled: false,
address: SocketAddr::new(Ipv4Addr::new(0, 0, 0, 0).into(), 25575),
password: "".to_string(),
}
}
}