Skip to content

Commit 8a59cb9

Browse files
committed
tunspace: remove problematic ifdown
Not sure what I was thinking, this was never neccessary. Apparantly on ifdown the link-local address fe80::2 gets removed, which permanently breaks the tunnel health check. Don't bring the interface down anymore when changing endpoints.
1 parent 53626e2 commit 8a59cb9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/tunspace/tunspace.uc

-5
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,6 @@ function wg_replace_endpoint(ifname, cfg, next) {
229229
let srvcfg = cfg.wireguard_servers[next];
230230
let certopt = srvcfg.insecure_cert ? "--no-check-certificate" : "";
231231

232-
// bring interface down to prevent OLSR and Babel from spamming syslog.
233-
if (0 != shell_command("ip link set down "+ifname)) {
234-
return false;
235-
}
236-
237232
// generate a fresh private key
238233
let randfd = fs.open("/dev/random");
239234
let privkey = randfd.read(32);

0 commit comments

Comments
 (0)