mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-25 14:35:38 +08:00
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package option
|
|
|
|
type RouteOptions struct {
|
|
GeoIP *GeoIPOptions `json:"geoip,omitempty"`
|
|
Geosite *GeositeOptions `json:"geosite,omitempty"`
|
|
IPRules []IPRule `json:"ip_rules,omitempty"`
|
|
Rules []Rule `json:"rules,omitempty"`
|
|
Final string `json:"final,omitempty"`
|
|
FindProcess bool `json:"find_process,omitempty"`
|
|
AutoDetectInterface bool `json:"auto_detect_interface,omitempty"`
|
|
OverrideAndroidVPN bool `json:"override_android_vpn,omitempty"`
|
|
DefaultInterface string `json:"default_interface,omitempty"`
|
|
DefaultMark int `json:"default_mark,omitempty"`
|
|
}
|
|
|
|
type GeoIPOptions struct {
|
|
Path string `json:"path,omitempty"`
|
|
DownloadURL string `json:"download_url,omitempty"`
|
|
DownloadDetour string `json:"download_detour,omitempty"`
|
|
}
|
|
|
|
type GeositeOptions struct {
|
|
Path string `json:"path,omitempty"`
|
|
DownloadURL string `json:"download_url,omitempty"`
|
|
DownloadDetour string `json:"download_detour,omitempty"`
|
|
}
|