aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorMatt Layher <mdlayher@gmail.com>2019-06-10 17:33:40 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-14 18:35:57 +0200
commit1f48971a80f48257e478e532f6971d0557026120 (patch)
treecd2a3b83a1b3d5e09d5e8283c61d29537f0cbf3e /main.go
parentdevice: update transfer counters correctly (diff)
downloadwireguard-go-1f48971a80f48257e478e532f6971d0557026120.tar.xz
wireguard-go-1f48971a80f48257e478e532f6971d0557026120.zip
tun: remove TUN prefix from types to reduce stutter elsewhere
Signed-off-by: Matt Layher <mdlayher@gmail.com>
Diffstat (limited to '')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 77a660f..12753d6 100644
--- a/main.go
+++ b/main.go
@@ -125,7 +125,7 @@ func main() {
// open TUN device (or use supplied fd)
- tun, err := func() (tun.TUNDevice, error) {
+ tun, err := func() (tun.Device, error) {
tunFdStr := os.Getenv(ENV_WG_TUN_FD)
if tunFdStr == "" {
return tun.CreateTUN(interfaceName, device.DefaultMTU)