diff options
Diffstat (limited to 'tun')
-rw-r--r-- | tun/helper_test.go | 3 | ||||
-rw-r--r-- | tun/tun_darwin.go | 5 | ||||
-rw-r--r-- | tun/tun_freebsd.go | 5 | ||||
-rw-r--r-- | tun/tun_linux.go | 7 | ||||
-rw-r--r-- | tun/tun_openbsd.go | 5 | ||||
-rw-r--r-- | tun/wintun/netshell/netshell_windows.go | 2 |
6 files changed, 16 insertions, 11 deletions
diff --git a/tun/helper_test.go b/tun/helper_test.go index 3e86fc8..4fa0357 100644 --- a/tun/helper_test.go +++ b/tun/helper_test.go @@ -8,9 +8,10 @@ package tun import ( "bytes" "errors" - "golang.zx2c4.com/wireguard/tun" "os" "testing" + + "golang.zx2c4.com/wireguard/tun" ) /* Helpers for writing unit tests diff --git a/tun/tun_darwin.go b/tun/tun_darwin.go index 2afe9de..f7cf8e8 100644 --- a/tun/tun_darwin.go +++ b/tun/tun_darwin.go @@ -7,13 +7,14 @@ package tun import ( "fmt" - "golang.org/x/net/ipv6" - "golang.org/x/sys/unix" "io/ioutil" "net" "os" "syscall" "unsafe" + + "golang.org/x/net/ipv6" + "golang.org/x/sys/unix" ) const utunControlName = "com.apple.net.utun_control" diff --git a/tun/tun_freebsd.go b/tun/tun_freebsd.go index c9c89ef..b7c82cf 100644 --- a/tun/tun_freebsd.go +++ b/tun/tun_freebsd.go @@ -9,12 +9,13 @@ import ( "bytes" "errors" "fmt" - "golang.org/x/net/ipv6" - "golang.org/x/sys/unix" "net" "os" "syscall" "unsafe" + + "golang.org/x/net/ipv6" + "golang.org/x/sys/unix" ) // _TUNSIFHEAD, value derived from sys/net/{if_tun,ioccom}.h diff --git a/tun/tun_linux.go b/tun/tun_linux.go index 784cb9f..f5f7ec7 100644 --- a/tun/tun_linux.go +++ b/tun/tun_linux.go @@ -12,15 +12,16 @@ import ( "bytes" "errors" "fmt" - "golang.org/x/net/ipv6" - "golang.org/x/sys/unix" - "golang.zx2c4.com/wireguard/rwcancel" "net" "os" "sync" "syscall" "time" "unsafe" + + "golang.org/x/net/ipv6" + "golang.org/x/sys/unix" + "golang.zx2c4.com/wireguard/rwcancel" ) const ( diff --git a/tun/tun_openbsd.go b/tun/tun_openbsd.go index 645bcca..a3db83b 100644 --- a/tun/tun_openbsd.go +++ b/tun/tun_openbsd.go @@ -7,13 +7,14 @@ package tun import ( "fmt" - "golang.org/x/net/ipv6" - "golang.org/x/sys/unix" "io/ioutil" "net" "os" "syscall" "unsafe" + + "golang.org/x/net/ipv6" + "golang.org/x/sys/unix" ) // Structure for iface mtu get/set ioctls diff --git a/tun/wintun/netshell/netshell_windows.go b/tun/wintun/netshell/netshell_windows.go index cb03252..3122d87 100644 --- a/tun/wintun/netshell/netshell_windows.go +++ b/tun/wintun/netshell/netshell_windows.go @@ -13,7 +13,7 @@ import ( ) var ( - modnetshell = windows.NewLazySystemDLL("netshell.dll") + modnetshell = windows.NewLazySystemDLL("netshell.dll") procHrRenameConnection = modnetshell.NewProc("HrRenameConnection") ) |