mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-11-30 08:08:18 +00:00
11 lines
237 B
Rust
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()
|
|
}
|