Add host address and port to metadata

resolves #22
This commit is contained in:
keivan-sf
2025-08-04 14:29:08 +03:30
parent a8194329dd
commit 4fb3f1d68f
2 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ pub fn get_metadata(uri: &str) -> String {
let (protocol, data, _) = get_uri_data(uri);
let meta_data = ConfigMetaData {
name: data.remarks,
host: data.host.clone(),
address: data.address.clone(),
port: data.port.clone(),
protocol,
};
let serialized = serde_json::to_string(&meta_data).unwrap();