Commit cffa7746 authored by Heinz N. Gies's avatar Heinz N. Gies

allow nics as a route targeT

parent 5e3817a6
Pipeline #14122173 passed with stages
in 10 minutes and 27 seconds
[root]
name = "vmadm"
version = "0.3.6"
version = "0.3.7"
dependencies = [
"aud 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"bzip2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
......
......@@ -400,7 +400,7 @@ impl JailConfig {
"Invalid destination",
))
}
if !IP_RE.is_match(gw.as_str()) {
if !IP_RE.is_match(gw.as_str()) && !INTERFACE_RE.is_match(gw.as_str()) {
errors.push(ValidationError::new(
format!("routes {} -> {}", dest, gw).as_str(),
"Invalid gateway",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment