]> git.meshlink.io Git - meshlink/blobdiff - src/linux/device.c
Always try next Address when an outgoing connection fails to authenticate.
[meshlink] / src / linux / device.c
index 93d4b414ebf31f16de6ce482ed1127543bc1ccd3..cbf215298dd635e8ff1d2cb869c6d93d114e4862 100644 (file)
@@ -73,6 +73,10 @@ static bool setup_device(void) {
                return false;
        }
 
+#ifdef FD_CLOEXEC
+       fcntl(device_fd, F_SETFD, FD_CLOEXEC);
+#endif
+
 #ifdef HAVE_LINUX_IF_TUN_H
        /* Ok now check if this is an old ethertap or a new tun/tap thingie */