port range should not be converted to single port (#1154)

This commit is contained in:
Sijie.Sun
2025-07-26 14:13:13 +08:00
committed by GitHub
parent 33ff9554cd
commit 5409c5bbe7

View File

@@ -647,10 +647,8 @@ impl NetworkOptions {
)); ));
} }
// Add individual ports in the range // acl can handle port range
for port in start..=end { ports.push(port_spec.clone());
ports.push(port.to_string());
}
} else { } else {
// Handle single port // Handle single port
let port: u16 = port_spec let port: u16 = port_spec