We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d4c51 commit c7d2c42Copy full SHA for c7d2c42
src/link/add.rs
@@ -756,7 +756,9 @@ impl LinkAddRequest {
756
/// Create a wireguard link.
757
/// This is equivalent to `ip link add NAME type wireguard`.
758
pub fn wireguard(self, name: String) -> Self {
759
- self.name(name).link_info(InfoKind::Wireguard, None)
+ let mut request = self.name(name).link_info(InfoKind::Wireguard, None);
760
+ request.message_mut().header.flags &= !IFF_UP;
761
+ request
762
}
763
764
/// Replace existing matching link.
0 commit comments