feat: get config metadata

This will replace --get-name add provide both name and protocol in a
single json object
This commit is contained in:
Keivan-sf
2025-07-28 18:09:14 +03:30
parent 82a5942af7
commit 1dfb45412f
3 changed files with 24 additions and 12 deletions

View File

@@ -265,3 +265,10 @@ pub struct RawData {
pub server_method: Option<String>,
pub username: Option<String>,
}
#[derive(Serialize, Deserialize)]
#[allow(non_snake_case)]
pub struct ConfigMetaData {
pub name: String,
pub protocol: String,
}