mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-23 00:17:35 +00:00
Fix macOS build
This commit is contained in:
parent
63cd757525
commit
af9ff34995
@ -55,9 +55,6 @@ func (tun *TunAdapter) setupFD(fd int32, addr string, mtu uint64) error {
|
|||||||
unix.Close(dfd)
|
unix.Close(dfd)
|
||||||
return fmt.Errorf("failed to create TUN from FD: %w", err)
|
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
|
tun.iface = iface
|
||||||
if m, err := iface.MTU(); err == nil {
|
if m, err := iface.MTU(); err == nil {
|
||||||
tun.mtu = getSupportedMTU(uint64(m))
|
tun.mtu = getSupportedMTU(uint64(m))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user