aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 93c5ba9..dcef3fb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -80,6 +80,7 @@ fn logic(tnl: &mut Option<IpIp6>, last: &mut Option<(Ipv6Addr, Ipv6Addr)>) -> Re
return Ok(());
}
+ *tnl = None; // Delete tunnel first, otherwise creation fails with "file exists".
*tnl = Some(IpIp6::new(
"dslite0".to_string(),
"ppp0".to_string(),