github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/option/tun.go (about) 1 package option 2 3 type TunInboundOptions struct { 4 InterfaceName string `json:"interface_name,omitempty"` 5 MTU uint32 `json:"mtu,omitempty"` 6 Inet4Address Listable[ListenPrefix] `json:"inet4_address,omitempty"` 7 Inet6Address Listable[ListenPrefix] `json:"inet6_address,omitempty"` 8 AutoRoute bool `json:"auto_route,omitempty"` 9 StrictRoute bool `json:"strict_route,omitempty"` 10 Inet4RouteAddress Listable[ListenPrefix] `json:"inet4_route_address,omitempty"` 11 Inet6RouteAddress Listable[ListenPrefix] `json:"inet6_route_address,omitempty"` 12 IncludeInterface Listable[string] `json:"include_interface,omitempty"` 13 ExcludeInterface Listable[string] `json:"exclude_interface,omitempty"` 14 IncludeUID Listable[uint32] `json:"include_uid,omitempty"` 15 IncludeUIDRange Listable[string] `json:"include_uid_range,omitempty"` 16 ExcludeUID Listable[uint32] `json:"exclude_uid,omitempty"` 17 ExcludeUIDRange Listable[string] `json:"exclude_uid_range,omitempty"` 18 IncludeAndroidUser Listable[int] `json:"include_android_user,omitempty"` 19 IncludePackage Listable[string] `json:"include_package,omitempty"` 20 ExcludePackage Listable[string] `json:"exclude_package,omitempty"` 21 EndpointIndependentNat bool `json:"endpoint_independent_nat,omitempty"` 22 UDPTimeout int64 `json:"udp_timeout,omitempty"` 23 Stack string `json:"stack,omitempty"` 24 Platform *TunPlatformOptions `json:"platform,omitempty"` 25 InboundOptions 26 }