1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-11-30 08:08:18 +00:00
doukutsu-rs/src/netplay/server_config.rs
2021-10-14 06:54:11 +02:00

11 lines
237 B
Rust

#[derive(serde::Serialize, serde::Deserialize)]
pub struct ServerConfiguration {
#[serde(default = "default_bind")]
pub bind_to: String,
}
// 'RS' = 0x5253 = 21075
fn default_bind() -> String {
"0.0.0.0:21075".to_string()
}