]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: use ByteSliceToString from golang.org/x/sys/unix
authorTobias Klauser <tklauser@distanz.ch>
Wed, 1 Jun 2022 09:33:54 +0000 (11:33 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 1 Jun 2022 13:00:07 +0000 (15:00 +0200)
commit6a08d81f6bc465a2276c61093d96e567d00beb24
tree718fff1c16c27e23b91bad5cb5f16529f4c3811f
parentef5c587f782d944005971c7ba5da88405f9b000b
tun: use ByteSliceToString from golang.org/x/sys/unix

Use unix.ByteSliceToString in (*NativeTun).nameSlice to convert the
TUNGETIFF ioctl result []byte to a string.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/tun_linux.go