Add missing #[cfg(feature = "phy-tap_interface")].

v0.7.x
寧靜 2018-02-04 16:31:03 +08:00 committed by whitequark
parent 57f9bc213d
commit 96fd18ff8f
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ pub fn add_tap_options(_opts: &mut Options, free: &mut Vec<&str>) {
free.push("INTERFACE");
}
#[cfg(feature = "phy-tap_interface")]
pub fn parse_tap_options(matches: &mut Matches) -> TapInterface {
let interface = matches.free.remove(0);
TapInterface::new(&interface).unwrap()