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