aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2020-02-28 08:53:29 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-02 01:46:42 -0600
commitabd287159e7eb7d20ee46c03d1a8cb9a645735e4 (patch)
tree278d3dc877cefc69b2db79b674acc11200266d9d
parentconn: introduce new package that splits out the Bind and Endpoint types (diff)
downloadwireguard-go-abd287159e7eb7d20ee46c03d1a8cb9a645735e4.tar.xz
wireguard-go-abd287159e7eb7d20ee46c03d1a8cb9a645735e4.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,