github.com/sagernet/sing-box@v1.9.0-rc.20/option/route.go (about)

     1  package option
     2  
     3  type RouteOptions struct {
     4  	GeoIP               *GeoIPOptions   `json:"geoip,omitempty"`
     5  	Geosite             *GeositeOptions `json:"geosite,omitempty"`
     6  	Rules               []Rule          `json:"rules,omitempty"`
     7  	RuleSet             []RuleSet       `json:"rule_set,omitempty"`
     8  	Final               string          `json:"final,omitempty"`
     9  	FindProcess         bool            `json:"find_process,omitempty"`
    10  	AutoDetectInterface bool            `json:"auto_detect_interface,omitempty"`
    11  	OverrideAndroidVPN  bool            `json:"override_android_vpn,omitempty"`
    12  	DefaultInterface    string          `json:"default_interface,omitempty"`
    13  	DefaultMark         int             `json:"default_mark,omitempty"`
    14  }
    15  
    16  type GeoIPOptions struct {
    17  	Path           string `json:"path,omitempty"`
    18  	DownloadURL    string `json:"download_url,omitempty"`
    19  	DownloadDetour string `json:"download_detour,omitempty"`
    20  }
    21  
    22  type GeositeOptions struct {
    23  	Path           string `json:"path,omitempty"`
    24  	DownloadURL    string `json:"download_url,omitempty"`
    25  	DownloadDetour string `json:"download_detour,omitempty"`
    26  }