From 8bf4204d2ea388e662bd58950c2f4a61b8f92b01 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 17 Feb 2021 22:19:27 +0100 Subject: global: stop using ioutil Signed-off-by: Jason A. Donenfeld --- tun/tun_openbsd.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tun/tun_openbsd.go') 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) } } -- cgit v1.2.3