mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-05 11:18:37 +00:00
TUN inbound: Add gateway, dns, autoSystemRoutingTable, autoOutboundsInterface for Windows (#5887)
And refactor `mtu` to support setting IPv4/v6 separately Example: https://github.com/XTLS/Xray-core/pull/5887#issue-4198837696
This commit is contained in:
+5
-6
@@ -1,13 +1,12 @@
|
||||
package tun
|
||||
|
||||
import "gvisor.dev/gvisor/pkg/tcpip/stack"
|
||||
|
||||
// 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
|
||||
Name() (string, error)
|
||||
Index() (int, error)
|
||||
newEndpoint() (stack.LinkEndpoint, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user