|
@@ -65,37 +65,38 @@ func (r DNSRule) IsValid() bool {
|
|
}
|
|
}
|
|
|
|
|
|
type DefaultDNSRule struct {
|
|
type DefaultDNSRule struct {
|
|
- Inbound Listable[string] `json:"inbound,omitempty"`
|
|
|
|
- IPVersion int `json:"ip_version,omitempty"`
|
|
|
|
- QueryType Listable[DNSQueryType] `json:"query_type,omitempty"`
|
|
|
|
- Network Listable[string] `json:"network,omitempty"`
|
|
|
|
- AuthUser Listable[string] `json:"auth_user,omitempty"`
|
|
|
|
- Protocol Listable[string] `json:"protocol,omitempty"`
|
|
|
|
- Domain Listable[string] `json:"domain,omitempty"`
|
|
|
|
- DomainSuffix Listable[string] `json:"domain_suffix,omitempty"`
|
|
|
|
- DomainKeyword Listable[string] `json:"domain_keyword,omitempty"`
|
|
|
|
- DomainRegex Listable[string] `json:"domain_regex,omitempty"`
|
|
|
|
- Geosite Listable[string] `json:"geosite,omitempty"`
|
|
|
|
- SourceGeoIP Listable[string] `json:"source_geoip,omitempty"`
|
|
|
|
- SourceIPCIDR Listable[string] `json:"source_ip_cidr,omitempty"`
|
|
|
|
- SourcePort Listable[uint16] `json:"source_port,omitempty"`
|
|
|
|
- SourcePortRange Listable[string] `json:"source_port_range,omitempty"`
|
|
|
|
- Port Listable[uint16] `json:"port,omitempty"`
|
|
|
|
- PortRange Listable[string] `json:"port_range,omitempty"`
|
|
|
|
- ProcessName Listable[string] `json:"process_name,omitempty"`
|
|
|
|
- ProcessPath Listable[string] `json:"process_path,omitempty"`
|
|
|
|
- PackageName Listable[string] `json:"package_name,omitempty"`
|
|
|
|
- User Listable[string] `json:"user,omitempty"`
|
|
|
|
- UserID Listable[int32] `json:"user_id,omitempty"`
|
|
|
|
- Outbound Listable[string] `json:"outbound,omitempty"`
|
|
|
|
- ClashMode string `json:"clash_mode,omitempty"`
|
|
|
|
- WIFISSID Listable[string] `json:"wifi_ssid,omitempty"`
|
|
|
|
- WIFIBSSID Listable[string] `json:"wifi_bssid,omitempty"`
|
|
|
|
- RuleSet Listable[string] `json:"rule_set,omitempty"`
|
|
|
|
- Invert bool `json:"invert,omitempty"`
|
|
|
|
- Server string `json:"server,omitempty"`
|
|
|
|
- DisableCache bool `json:"disable_cache,omitempty"`
|
|
|
|
- RewriteTTL *uint32 `json:"rewrite_ttl,omitempty"`
|
|
|
|
|
|
+ Inbound Listable[string] `json:"inbound,omitempty"`
|
|
|
|
+ IPVersion int `json:"ip_version,omitempty"`
|
|
|
|
+ QueryType Listable[DNSQueryType] `json:"query_type,omitempty"`
|
|
|
|
+ Network Listable[string] `json:"network,omitempty"`
|
|
|
|
+ AuthUser Listable[string] `json:"auth_user,omitempty"`
|
|
|
|
+ Protocol Listable[string] `json:"protocol,omitempty"`
|
|
|
|
+ Domain Listable[string] `json:"domain,omitempty"`
|
|
|
|
+ DomainSuffix Listable[string] `json:"domain_suffix,omitempty"`
|
|
|
|
+ DomainKeyword Listable[string] `json:"domain_keyword,omitempty"`
|
|
|
|
+ DomainRegex Listable[string] `json:"domain_regex,omitempty"`
|
|
|
|
+ Geosite Listable[string] `json:"geosite,omitempty"`
|
|
|
|
+ SourceGeoIP Listable[string] `json:"source_geoip,omitempty"`
|
|
|
|
+ SourceIPCIDR Listable[string] `json:"source_ip_cidr,omitempty"`
|
|
|
|
+ SourceIPIsPrivate bool `json:"source_ip_is_private,omitempty"`
|
|
|
|
+ SourcePort Listable[uint16] `json:"source_port,omitempty"`
|
|
|
|
+ SourcePortRange Listable[string] `json:"source_port_range,omitempty"`
|
|
|
|
+ Port Listable[uint16] `json:"port,omitempty"`
|
|
|
|
+ PortRange Listable[string] `json:"port_range,omitempty"`
|
|
|
|
+ ProcessName Listable[string] `json:"process_name,omitempty"`
|
|
|
|
+ ProcessPath Listable[string] `json:"process_path,omitempty"`
|
|
|
|
+ PackageName Listable[string] `json:"package_name,omitempty"`
|
|
|
|
+ User Listable[string] `json:"user,omitempty"`
|
|
|
|
+ UserID Listable[int32] `json:"user_id,omitempty"`
|
|
|
|
+ Outbound Listable[string] `json:"outbound,omitempty"`
|
|
|
|
+ ClashMode string `json:"clash_mode,omitempty"`
|
|
|
|
+ WIFISSID Listable[string] `json:"wifi_ssid,omitempty"`
|
|
|
|
+ WIFIBSSID Listable[string] `json:"wifi_bssid,omitempty"`
|
|
|
|
+ RuleSet Listable[string] `json:"rule_set,omitempty"`
|
|
|
|
+ Invert bool `json:"invert,omitempty"`
|
|
|
|
+ Server string `json:"server,omitempty"`
|
|
|
|
+ DisableCache bool `json:"disable_cache,omitempty"`
|
|
|
|
+ RewriteTTL *uint32 `json:"rewrite_ttl,omitempty"`
|
|
}
|
|
}
|
|
|
|
|
|
func (r DefaultDNSRule) IsValid() bool {
|
|
func (r DefaultDNSRule) IsValid() bool {
|