2022-07-25 11:29:46 +08:00
|
|
|
package option
|
|
|
|
|
|
|
|
type TunInboundOptions struct {
|
2022-08-15 00:25:49 +08:00
|
|
|
InterfaceName string `json:"interface_name,omitempty"`
|
|
|
|
MTU uint32 `json:"mtu,omitempty"`
|
|
|
|
Inet4Address *ListenPrefix `json:"inet4_address,omitempty"`
|
|
|
|
Inet6Address *ListenPrefix `json:"inet6_address,omitempty"`
|
|
|
|
AutoRoute bool `json:"auto_route,omitempty"`
|
2022-08-26 21:53:08 +08:00
|
|
|
StrictRoute bool `json:"strict_route,omitempty"`
|
2022-08-15 00:25:49 +08:00
|
|
|
IncludeUID Listable[uint32] `json:"include_uid,omitempty"`
|
|
|
|
IncludeUIDRange Listable[string] `json:"include_uid_range,omitempty"`
|
|
|
|
ExcludeUID Listable[uint32] `json:"exclude_uid,omitempty"`
|
|
|
|
ExcludeUIDRange Listable[string] `json:"exclude_uid_range,omitempty"`
|
2022-08-16 12:16:59 +08:00
|
|
|
IncludeAndroidUser Listable[int] `json:"include_android_user,omitempty"`
|
2022-08-15 11:40:49 +08:00
|
|
|
IncludePackage Listable[string] `json:"include_package,omitempty"`
|
|
|
|
ExcludePackage Listable[string] `json:"exclude_package,omitempty"`
|
2022-08-15 00:25:49 +08:00
|
|
|
EndpointIndependentNat bool `json:"endpoint_independent_nat,omitempty"`
|
|
|
|
UDPTimeout int64 `json:"udp_timeout,omitempty"`
|
|
|
|
Stack string `json:"stack,omitempty"`
|
2022-07-25 11:29:46 +08:00
|
|
|
InboundOptions
|
|
|
|
}
|