tun: remove unused isUp method

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2020-02-28 08:53:29 -08:00 committed by Jason A. Donenfeld
parent 203554620d
commit abd287159e

View File

@ -12,7 +12,6 @@ import (
"bytes"
"errors"
"fmt"
"net"
"os"
"sync"
"syscall"
@ -164,11 +163,6 @@ func (tun *NativeTun) routineNetlinkListener() {
}
}
func (tun *NativeTun) isUp() (bool, error) {
inter, err := net.InterfaceByName(tun.name)
return inter.Flags&net.FlagUp != 0, err
}
func getIFIndex(name string) (int32, error) {
fd, err := unix.Socket(
unix.AF_INET,