mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 10:50:45 +01:00
1de3bb5420
Add netstack support for the agent to run it without privileges. - use interface for tun device - use common IPC for userspace WireGuard integration - move udpmux creation and sharedsock to tun layer
12 lines
163 B
Go
12 lines
163 B
Go
package iface
|
|
|
|
import (
|
|
"net"
|
|
|
|
"golang.zx2c4.com/wireguard/ipc"
|
|
)
|
|
|
|
func openUAPI(deviceName string) (net.Listener, error) {
|
|
return ipc.UAPIListen(deviceName)
|
|
}
|