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
for port in start..=end {
ports.push(port.to_string());
}
// acl can handle port range
ports.push(port_spec.clone());
} else {
// Handle single port
let port: u16 = port_spec