Removed elevate for now

This commit is contained in:
mlsmaycon
2021-06-06 23:59:19 +02:00
parent 54235f0a77
commit 698ebe2287
3 changed files with 1 additions and 24 deletions

View File

@ -4,15 +4,9 @@ package iface
import (
"golang.zx2c4.com/wireguard/ipc"
"golang.zx2c4.com/wireguard/tun"
"net"
)
// createIface creates a tun device
func createIface(iface string, defaultMTU int) (tun.Device, error) {
return tun.CreateTUN(iface, defaultMTU)
}
// getUAPI returns a Listener
func getUAPI(iface string) (net.Listener, error) {
tunSock, err := ipc.UAPIOpen(iface)