diff --git a/tun_darwin.go b/tun_darwin.go index f76de13..fcde2a0 100644 --- a/tun_darwin.go +++ b/tun_darwin.go @@ -16,7 +16,6 @@ import ( "io/ioutil" "net" "os" - "path/filepath" "time" "unsafe" ) @@ -109,7 +108,6 @@ func CreateTUN(name string) (TUNDevice, error) { if err == nil && name == "utun" { fname := os.Getenv("WG_DARWIN_UTUN_NAME_FILE") if fname != "" { - os.MkdirAll(filepath.Dir(fname), 0700) ioutil.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400) } }