#[cfg(feature = "has-storage")] use crate::net::client_ip::ClientIp; #[cfg(feature = "has-storage")] use std::sync::OnceLock; use std::{net::SocketAddr, path::PathBuf}; #[cfg(feature = "has-storage")] pub static CF: OnceLock = OnceLock::new(); use std::time::Duration; #[derive(Clone, Debug)] pub struct Config { pub bind: SocketAddr, pub path: String, #[cfg(feature = "has-storage")] pub client_ip: ClientIp, pub user: Option, pub pass: Option, pub crt: Option, pub key: Option, pub tick_interval: Duration, }