add /status endpoint to proxy

This commit is contained in:
2025-10-25 23:42:05 -06:00
parent b8a201911f
commit cfb8144561
6 changed files with 309 additions and 3 deletions
+10
View File
@@ -5,3 +5,13 @@ pub struct ClientConfig {
pub proxy_url: Option<String>,
pub cert_hash: Option<Vec<u8>>,
}
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
pub struct ServerStatus {
#[serde(default)]
pub success: bool,
pub version: Option<(u32, u32, u32)>,
pub users: Option<u32>,
pub max_users: Option<u32>,
pub bandwidth: Option<u32>,
}