github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/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 Final string `json:"final,omitempty"` 8 FindProcess bool `json:"find_process,omitempty"` 9 AutoDetectInterface bool `json:"auto_detect_interface,omitempty"` 10 OverrideAndroidVPN bool `json:"override_android_vpn,omitempty"` 11 DefaultInterface string `json:"default_interface,omitempty"` 12 DefaultMark int `json:"default_mark,omitempty"` 13 } 14 15 type GeoIPOptions struct { 16 Path string `json:"path,omitempty"` 17 DownloadURL string `json:"download_url,omitempty"` 18 DownloadDetour string `json:"download_detour,omitempty"` 19 } 20 21 type GeositeOptions struct { 22 Path string `json:"path,omitempty"` 23 DownloadURL string `json:"download_url,omitempty"` 24 DownloadDetour string `json:"download_detour,omitempty"` 25 }