mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-01-13 06:07:14 +08:00
* Proxy: Implement tun raw network interface inbound support for Linux * Proxy: Tun. Include "android" as build condition for build of tun_default implementation * Proxy: Tun. Add .Close() cleanup calls to Handler.Init() where needed * Proxy: Add Tun for Android * Proxy: Tun. Implement Windows support --------- Co-authored-by: yuhan6665 <1588741+yuhan6665@users.noreply.github.com>
14 lines
221 B
Go
14 lines
221 B
Go
package tun
|
|
|
|
// Tun interface implements tun interface interaction
|
|
type Tun interface {
|
|
Start() error
|
|
Close() error
|
|
}
|
|
|
|
// TunOptions for tun interface implementation
|
|
type TunOptions struct {
|
|
Name string
|
|
MTU uint32
|
|
}
|