mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
41 lines
811 B
Go
41 lines
811 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
|
|
RuleSetVersionCurrent = RuleSetVersion2
|
|
)
|
|
|
|
const (
|
|
RuleActionTypeRoute = "route"
|
|
RuleActionTypeReturn = "return"
|
|
RuleActionTypeReject = "reject"
|
|
RuleActionTypeHijackDNS = "hijack-dns"
|
|
RuleActionTypeSniff = "sniff"
|
|
RuleActionTypeResolve = "resolve"
|
|
)
|
|
|
|
const (
|
|
RuleActionRejectMethodDefault = "default"
|
|
RuleActionRejectMethodPortUnreachable = "port-unreachable"
|
|
RuleActionRejectMethodDrop = "drop"
|
|
)
|