mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-22 23:33:09 +01:00
Revert "Temporary work around. Please revert me"
This reverts commit 4312a7c70a
.
This commit is contained in:
parent
5a267f0b8c
commit
75cdc5986a
@ -16,7 +16,6 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@ -109,7 +108,6 @@ func CreateTUN(name string) (TUNDevice, error) {
|
|||||||
if err == nil && name == "utun" {
|
if err == nil && name == "utun" {
|
||||||
fname := os.Getenv("WG_DARWIN_UTUN_NAME_FILE")
|
fname := os.Getenv("WG_DARWIN_UTUN_NAME_FILE")
|
||||||
if fname != "" {
|
if fname != "" {
|
||||||
os.MkdirAll(filepath.Dir(fname), 0700)
|
|
||||||
ioutil.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
|
ioutil.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user