diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 1 | ||||
-rw-r--r-- | src/main.rs | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 124893b..bfb28be 100644 --- a/src/config.rs +++ b/src/config.rs | |||
@@ -25,6 +25,7 @@ impl Config { | |||
25 | .set_default("pingtimeout", 10)? | 25 | .set_default("pingtimeout", 10)? |
26 | .set_default("pingthreshold", 1)? | 26 | .set_default("pingthreshold", 1)? |
27 | .set_default("timeoffset", 0)? | 27 | .set_default("timeoffset", 0)? |
28 | .set_default("auth.method", "none")? | ||
28 | .set_default("auth.secret", "")? | 29 | .set_default("auth.secret", "")? |
29 | .add_source(File::with_name("config.toml").required(false)) | 30 | .add_source(File::with_name("config.toml").required(false)) |
30 | .add_source(File::with_name("config.dev.toml").required(false)) | 31 | .add_source(File::with_name("config.dev.toml").required(false)) |
diff --git a/src/main.rs b/src/main.rs index cf0d39b..779385f 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -68,7 +68,6 @@ impl Modify for SecurityAddon { | |||
68 | } | 68 | } |
69 | 69 | ||
70 | #[tokio::main] | 70 | #[tokio::main] |
71 | #[allow(deprecated)] | ||
72 | async fn main() -> color_eyre::eyre::Result<()> { | 71 | async fn main() -> color_eyre::eyre::Result<()> { |
73 | color_eyre::install()?; | 72 | color_eyre::install()?; |
74 | 73 | ||