aboutsummaryrefslogtreecommitdiff
path: root/tun/tun_openbsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/tun_openbsd.go')
-rw-r--r--tun/tun_openbsd.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tun/tun_openbsd.go b/tun/tun_openbsd.go
index b2815d7..8fca1e3 100644
--- a/tun/tun_openbsd.go
+++ b/tun/tun_openbsd.go
@@ -8,7 +8,6 @@ package tun
import (
"errors"
"fmt"
- "io/ioutil"
"net"
"os"
"syscall"
@@ -132,7 +131,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
if err == nil && name == "tun" {
fname := os.Getenv("WG_TUN_NAME_FILE")
if fname != "" {
- ioutil.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
+ os.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
}
}