Fix macOS build

This commit is contained in:
Neil Alexander 2024-08-07 19:55:10 +01:00
parent 63cd757525
commit af9ff34995
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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))