diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
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)] |
8 | pub struct Config { | 8 | pub 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 { | |||
15 | impl Default for Config { | 15 | impl 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(), |