2022-07-02 06:07:50 +00:00
|
|
|
package constant
|
|
|
|
|
|
|
|
const (
|
|
|
|
RuleTypeDefault = "default"
|
|
|
|
RuleTypeLogical = "logical"
|
|
|
|
)
|
2022-07-02 14:55:10 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
LogicalTypeAnd = "and"
|
|
|
|
LogicalTypeOr = "or"
|
|
|
|
)
|
2023-12-01 05:24:12 +00:00
|
|
|
|
|
|
|
const (
|
2024-06-25 16:43:51 +00:00
|
|
|
RuleSetTypeInline = "inline"
|
2023-12-01 05:24:12 +00:00
|
|
|
RuleSetTypeLocal = "local"
|
|
|
|
RuleSetTypeRemote = "remote"
|
|
|
|
RuleSetFormatSource = "source"
|
|
|
|
RuleSetFormatBinary = "binary"
|
|
|
|
)
|
2024-07-17 09:57:35 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
RuleSetVersion1 = 1 + iota
|
|
|
|
RuleSetVersion2
|
2024-11-11 08:27:28 +00:00
|
|
|
RuleSetVersionCurrent = RuleSetVersion2
|
2024-07-17 09:57:35 +00:00
|
|
|
)
|
2024-10-21 15:38:34 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
RuleActionTypeRoute = "route"
|
|
|
|
RuleActionTypeReturn = "return"
|
|
|
|
RuleActionTypeReject = "reject"
|
|
|
|
RuleActionTypeHijackDNS = "hijack-dns"
|
|
|
|
RuleActionTypeSniff = "sniff"
|
|
|
|
RuleActionTypeResolve = "resolve"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2024-11-06 09:23:00 +00:00
|
|
|
RuleActionRejectMethodDefault = "default"
|
|
|
|
RuleActionRejectMethodDrop = "drop"
|
2024-10-21 15:38:34 +00:00
|
|
|
)
|