mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 17:43:38 +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
23 lines
636 B
Go
23 lines
636 B
Go
package internal
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/internal/dns"
|
|
"github.com/netbirdio/netbird/client/internal/listener"
|
|
"github.com/netbirdio/netbird/client/internal/stdnet"
|
|
"github.com/netbirdio/netbird/iface"
|
|
)
|
|
|
|
// MobileDependency collect all dependencies for mobile platform
|
|
type MobileDependency struct {
|
|
// Android only
|
|
TunAdapter iface.TunAdapter
|
|
IFaceDiscover stdnet.ExternalIFaceDiscover
|
|
NetworkChangeListener listener.NetworkChangeListener
|
|
HostDNSAddresses []string
|
|
DnsReadyListener dns.ReadyListener
|
|
|
|
// iOS only
|
|
DnsManager dns.IosDnsManager
|
|
FileDescriptor int32
|
|
}
|