端口映射列表为空时不启动

This commit is contained in:
lbl8603
2024-05-09 20:11:43 +08:00
parent 5a9e31bded
commit cf4fc54dfd
+3
View File
@@ -63,6 +63,9 @@ pub fn start_port_mapping(
stop_manager: StopManager,
vec: Vec<(bool, SocketAddr, String)>,
) -> anyhow::Result<()> {
if vec.is_empty() {
return Ok(());
}
let runtime = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.thread_name("portMapping")