finish server side cert auth and motd

This commit is contained in:
Toshit Chawda 2024-09-14 17:47:16 -07:00
parent 01ff6ee956
commit 577ce71b89
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
10 changed files with 199 additions and 38 deletions

View file

@ -1,4 +1,5 @@
#![feature(ip)]
#![deny(clippy::todo)]
use std::{fmt::Write, fs::read_to_string};
@ -59,7 +60,7 @@ fn format_stream_type(stream_type: StreamType) -> &'static str {
StreamType::Tcp => "tcp",
StreamType::Udp => "udp",
#[cfg(feature = "twisp")]
StreamType::Unknown(crate::handle::twisp::STREAM_TYPE) => "twisp",
StreamType::Unknown(crate::handle::wisp::twisp::STREAM_TYPE) => "twisp",
StreamType::Unknown(_) => unreachable!(),
}
}
@ -183,7 +184,7 @@ async fn main() -> anyhow::Result<()> {
.parse_default_env()
.init();
validate_config_cache();
validate_config_cache().await;
info!(
"listening on {:?} with socket type {:?} and socket transport {:?}",