支持--no-default-features编译

This commit is contained in:
lubeilin
2024-05-11 13:30:16 +08:00
parent 0e4294415e
commit d8a9ec5732
9 changed files with 25 additions and 3 deletions
+3
View File
@@ -185,7 +185,10 @@ pub fn command_info(vnt: &Vnt) -> Info {
.unwrap_or("None".to_string());
let up = vnt.up_stream();
let down = vnt.down_stream();
#[cfg(feature = "port_mapping")]
let port_mapping_list = vnt.config().port_mapping_list.clone();
#[cfg(not(feature = "port_mapping"))]
let port_mapping_list = vec![];
let in_ips = vnt.config().in_ips.clone();
let out_ips = vnt.config().out_ips.clone();
Info {