mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-30 12:31:31 +00:00
42 lines
816 B
Go
42 lines
816 B
Go
package constant
|
|
|
|
const (
|
|
RuleTypeDefault = "default"
|
|
RuleTypeLogical = "logical"
|
|
)
|
|
|
|
const (
|
|
LogicalTypeAnd = "and"
|
|
LogicalTypeOr = "or"
|
|
)
|
|
|
|
const (
|
|
RuleSetTypeInline = "inline"
|
|
RuleSetTypeLocal = "local"
|
|
RuleSetTypeRemote = "remote"
|
|
RuleSetFormatSource = "source"
|
|
RuleSetFormatBinary = "binary"
|
|
)
|
|
|
|
const (
|
|
RuleSetVersion1 = 1 + iota
|
|
RuleSetVersion2
|
|
RuleSetVersion3
|
|
RuleSetVersionCurrent = RuleSetVersion3
|
|
)
|
|
|
|
const (
|
|
RuleActionTypeRoute = "route"
|
|
RuleActionTypeRouteOptions = "route-options"
|
|
RuleActionTypeDirect = "direct"
|
|
RuleActionTypeReject = "reject"
|
|
RuleActionTypeHijackDNS = "hijack-dns"
|
|
RuleActionTypeSniff = "sniff"
|
|
RuleActionTypeResolve = "resolve"
|
|
)
|
|
|
|
const (
|
|
RuleActionRejectMethodDefault = "default"
|
|
RuleActionRejectMethodDrop = "drop"
|
|
)
|