1
0

route.go 1.1 KB

1234567891011121314151617181920212223242526
  1. package option
  2. type RouteOptions struct {
  3. GeoIP *GeoIPOptions `json:"geoip,omitempty"`
  4. Geosite *GeositeOptions `json:"geosite,omitempty"`
  5. Rules []Rule `json:"rules,omitempty"`
  6. RuleSet []RuleSet `json:"rule_set,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. type GeoIPOptions struct {
  15. Path string `json:"path,omitempty"`
  16. DownloadURL string `json:"download_url,omitempty"`
  17. DownloadDetour string `json:"download_detour,omitempty"`
  18. }
  19. type GeositeOptions struct {
  20. Path string `json:"path,omitempty"`
  21. DownloadURL string `json:"download_url,omitempty"`
  22. DownloadDetour string `json:"download_detour,omitempty"`
  23. }