github.com/sagernet/sing-box@v1.2.7/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  	IncludeUID             Listable[uint32]       `json:"include_uid,omitempty"`
    13  	IncludeUIDRange        Listable[string]       `json:"include_uid_range,omitempty"`
    14  	ExcludeUID             Listable[uint32]       `json:"exclude_uid,omitempty"`
    15  	ExcludeUIDRange        Listable[string]       `json:"exclude_uid_range,omitempty"`
    16  	IncludeAndroidUser     Listable[int]          `json:"include_android_user,omitempty"`
    17  	IncludePackage         Listable[string]       `json:"include_package,omitempty"`
    18  	ExcludePackage         Listable[string]       `json:"exclude_package,omitempty"`
    19  	EndpointIndependentNat bool                   `json:"endpoint_independent_nat,omitempty"`
    20  	UDPTimeout             int64                  `json:"udp_timeout,omitempty"`
    21  	Stack                  string                 `json:"stack,omitempty"`
    22  	Platform               *TunPlatformOptions    `json:"platform,omitempty"`
    23  	InboundOptions
    24  }