diff options
author | fxqnlr <[email protected]> | 2024-10-04 17:23:09 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-10-04 17:23:09 +0200 |
commit | ae386a491b23cfbadc4da8680c8ebcb85310dcb5 (patch) | |
tree | c014ad6e437a86910c01fe9b2bbc2548c22db168 /src/config.rs | |
parent | 0d5ac9f0ef306faa4e0ad5315fd6368400449d1a (diff) | |
download | webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.tar webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.tar.gz webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.zip |
rename `serveraddr` to `addr`
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(), |