2022-07-02 14:07:50 +08:00
|
|
|
package option
|
|
|
|
|
2022-07-02 22:55:10 +08:00
|
|
|
type RouteOptions struct {
|
2022-07-10 08:18:52 +08:00
|
|
|
GeoIP *GeoIPOptions `json:"geoip,omitempty"`
|
|
|
|
Geosite *GeositeOptions `json:"geosite,omitempty"`
|
|
|
|
Rules []Rule `json:"rules,omitempty"`
|
2023-12-01 13:24:12 +08:00
|
|
|
RuleSet []RuleSet `json:"rule_set,omitempty"`
|
2022-07-10 08:18:52 +08:00
|
|
|
Final string `json:"final,omitempty"`
|
2022-07-23 19:01:41 +08:00
|
|
|
FindProcess bool `json:"find_process,omitempty"`
|
2022-07-10 08:18:52 +08:00
|
|
|
AutoDetectInterface bool `json:"auto_detect_interface,omitempty"`
|
2022-09-05 13:12:29 +08:00
|
|
|
OverrideAndroidVPN bool `json:"override_android_vpn,omitempty"`
|
2022-07-15 11:51:51 +08:00
|
|
|
DefaultInterface string `json:"default_interface,omitempty"`
|
2022-07-24 17:46:25 +08:00
|
|
|
DefaultMark int `json:"default_mark,omitempty"`
|
2022-07-02 22:55:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type GeoIPOptions struct {
|
|
|
|
Path string `json:"path,omitempty"`
|
|
|
|
DownloadURL string `json:"download_url,omitempty"`
|
|
|
|
DownloadDetour string `json:"download_detour,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-07-05 09:05:35 +08:00
|
|
|
type GeositeOptions struct {
|
|
|
|
Path string `json:"path,omitempty"`
|
|
|
|
DownloadURL string `json:"download_url,omitempty"`
|
|
|
|
DownloadDetour string `json:"download_detour,omitempty"`
|
|
|
|
}
|