Remove waitForTUNUp from TUN

Causes issues such as #1156.
This commit is contained in:
Neil Alexander 2024-08-07 19:52:19 +01:00
parent 5e5de3a343
commit 63cd757525
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
5 changed files with 0 additions and 27 deletions

View file

@ -21,9 +21,6 @@ func (tun *TunAdapter) setup(ifname string, addr string, mtu uint64) error {
if err != nil {
return fmt.Errorf("failed to create TUN: %w", err)
}
if !waitForTUNUp(iface.Events()) {
return fmt.Errorf("TUN did not come up in time")
}
tun.iface = iface
if mtu, err := iface.MTU(); err == nil {
tun.mtu = getSupportedMTU(uint64(mtu))