mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
port range should not be converted to single port (#1154)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user