aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2020-02-28 08:53:29 -0800
committerDavid Crawshaw <david@zentus.com>2020-03-30 21:25:45 +1100
commit900ae645d16b2cd813e494f4e9593b299ed8b50a (patch)
treee5a928fcfc7d84dc2f7e3d1323fdccb3b9297f8b
parentconn: new package that splits out the Bind and Endpoint types (diff)
downloadwireguard-go-900ae645d16b2cd813e494f4e9593b299ed8b50a.tar.xz
wireguard-go-900ae645d16b2cd813e494f4e9593b299ed8b50a.zip
tun: remove unused isUp method
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
-rw-r--r--tun/tun_linux.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/tun/tun_linux.go b/tun/tun_linux.go
index 7ab0623..17b8822 100644
--- a/tun/tun_linux.go
+++ b/tun/tun_linux.go
@@ -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,