feat: add must_direct outbound

This commit is contained in:
mzz2017
2023-02-12 23:11:40 +08:00
parent 45db7835a5
commit feb58925a4
6 changed files with 22 additions and 10 deletions

View File

@ -42,6 +42,8 @@ func NewRoutingMatcherBuilder(outboundName2Id map[string]uint8, bpf *bpfObjects)
func (b *RoutingMatcherBuilder) OutboundToId(outbound string) uint8 {
var outboundId uint8
switch outbound {
case routing.FakeOutbound_MUST_DIRECT:
outboundId = uint8(consts.OutboundMustDirect)
case routing.FakeOutbound_AND:
outboundId = uint8(consts.OutboundLogicalAnd)
case routing.FakeOutbound_OR: