aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-10-04 17:23:09 +0200
committerfxqnlr <[email protected]>2024-10-04 17:23:09 +0200
commitae386a491b23cfbadc4da8680c8ebcb85310dcb5 (patch)
treec014ad6e437a86910c01fe9b2bbc2548c22db168 /src/config.rs
parent0d5ac9f0ef306faa4e0ad5315fd6368400449d1a (diff)
downloadwebol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.tar
webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.tar.gz
webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.zip
rename `serveraddr` to `addr`
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 4b333fe..2e9c1eb 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -6,7 +6,7 @@ use crate::auth;
6#[derive(Debug, Clone, Deserialize)] 6#[derive(Debug, Clone, Deserialize)]
7#[serde(default)] 7#[serde(default)]
8pub struct Config { 8pub struct Config {
9 pub serveraddr: String, 9 pub addr: String,
10 pub pingtimeout: i64, 10 pub pingtimeout: i64,
11 pub pingthreshold: u64, 11 pub pingthreshold: u64,
12 pub auth: Auth, 12 pub auth: Auth,
@@ -15,7 +15,7 @@ pub struct Config {
15impl Default for Config { 15impl Default for Config {
16 fn default() -> Self { 16 fn default() -> Self {
17 Self { 17 Self {
18 serveraddr: "0.0.0.0:7229".to_string(), 18 addr: "0.0.0.0:7229".to_string(),
19 pingtimeout: 10, 19 pingtimeout: 10,
20 pingthreshold: 1, 20 pingthreshold: 1,
21 auth: Default::default(), 21 auth: Default::default(),