aboutsummaryrefslogtreecommitdiffstats
path: root/tun_darwin.go
diff options
context:
space:
mode:
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)
}