mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-29 10:09:08 +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
19 lines
371 B
Go
19 lines
371 B
Go
//go:build !android
|
|
// +build !android
|
|
|
|
package iface
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/iface/bind"
|
|
)
|
|
|
|
type wgTunDevice interface {
|
|
Create() (wgConfigurer, error)
|
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
|
UpdateAddr(address WGAddress) error
|
|
WgAddress() WGAddress
|
|
DeviceName() string
|
|
Close() error
|
|
Wrapper() *DeviceWrapper // todo eliminate this function
|
|
}
|