From af9ff34995aa8da5670227fc1a8981051ceaec65 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 7 Aug 2024 19:55:10 +0100 Subject: [PATCH] Fix macOS build --- src/tun/tun_darwin.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tun/tun_darwin.go b/src/tun/tun_darwin.go index aa30b7f3..deeb115e 100644 --- a/src/tun/tun_darwin.go +++ b/src/tun/tun_darwin.go @@ -55,9 +55,6 @@ func (tun *TunAdapter) setupFD(fd int32, addr string, mtu uint64) error { unix.Close(dfd) return fmt.Errorf("failed to create TUN from FD: %w", err) } - if !waitForTUNUp(iface.Events()) { - return fmt.Errorf("TUN did not come up in time") - } tun.iface = iface if m, err := iface.MTU(); err == nil { tun.mtu = getSupportedMTU(uint64(m))