aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-08-17 15:42:04 +0200
committerHimbeer <himbeer@disroot.org>2024-08-17 15:42:04 +0200
commit5c5ac2a35205a1507d1f86a5de9055f4c7fe2e25 (patch)
treed8a605f09d47fbc9f9ee4824c0f04d4a6cf704e2
parentf9a8f03228d313d667baef91cdfbb3e668653b28 (diff)
Set link state to up
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 3c7da1b..675ed84 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -67,6 +67,7 @@ fn configure_link(connection: &Connection, keypair: KeyPair) -> Result<()> {
.apply(&IFNAME.parse().expect("valid link name"), Backend::Kernel)?;
connection.address_add(String::from(IFNAME), INNER_ADDRESS, 24)?;
+ connection.link_set(String::from(IFNAME), true)?;
Ok(())
}