1
0
mirror of https://github.com/netbirdio/netbird.git synced 2024-12-16 03:41:26 +01:00
netbird/iface/tun_adapter.go
Zoltan Papp c590518e0c
Feature/exit node Android ()
Support exit node on Android.
With the protect socket function, we mark every connection that should be used out of VPN.
2024-05-07 12:28:30 +02:00

9 lines
290 B
Go

package iface
// TunAdapter is an interface for create tun device from external service
type TunAdapter interface {
ConfigureInterface(address string, mtu int, dns string, searchDomains string, routes string) (int, error)
UpdateAddr(address string) error
ProtectSocket(fd int32) bool
}