From ae386a491b23cfbadc4da8680c8ebcb85310dcb5 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 4 Oct 2024 17:23:09 +0200 Subject: rename `serveraddr` to `addr` --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.rs') 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; #[derive(Debug, Clone, Deserialize)] #[serde(default)] pub struct Config { - pub serveraddr: String, + pub addr: String, pub pingtimeout: i64, pub pingthreshold: u64, pub auth: Auth, @@ -15,7 +15,7 @@ pub struct Config { impl Default for Config { fn default() -> Self { Self { - serveraddr: "0.0.0.0:7229".to_string(), + addr: "0.0.0.0:7229".to_string(), pingtimeout: 10, pingthreshold: 1, auth: Default::default(), -- cgit v1.2.3