aboutsummaryrefslogtreecommitdiffstats
path: root/tun_darwin.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-22 15:17:35 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-22 16:21:05 +0200
commitd6b694e1613fd19f8a77ea177d467a60fda4db1d (patch)
tree31d1a14eefc0413063630ad4beeaca4bc80adb13 /tun_darwin.go
parentFix code duplication (diff)
downloadwireguard-go-d6b694e1613fd19f8a77ea177d467a60fda4db1d.tar.xz
wireguard-go-d6b694e1613fd19f8a77ea177d467a60fda4db1d.zip
Add OpenBSD tun driver support
Diffstat (limited to '')
-rw-r--r--tun_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun_darwin.go b/tun_darwin.go
index d43be94..8e4b970 100644
--- a/tun_darwin.go
+++ b/tun_darwin.go
@@ -154,7 +154,7 @@ func CreateTUN(name string) (TUNDevice, error) {
tun, err := CreateTUNFromFile(os.NewFile(uintptr(fd), ""))
if err == nil && name == "utun" {
- fname := os.Getenv("WG_DARWIN_UTUN_NAME_FILE")
+ fname := os.Getenv("WG_TUN_NAME_FILE")
if fname != "" {
ioutil.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
}