Skip to content

Commit

Permalink
feat: 路由支持变量
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng.qi committed Nov 29, 2023
1 parent b133574 commit 5b91a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/servicerouter/rulebase/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (g *RuleBasedInstancesFilter) getRuleMetaValueStr(routeInfo *servicerouter.
} else {
// 如果是参数类型,并且当前是针对 Source 方向的标签匹配,默认直接放通
exist = true
processedRuleMetaValue = matchAll
processedRuleMetaValue = srcMeta[ruleMetaKey]
}
case apimodel.MatchString_VARIABLE:
processedRuleMetaValue, exist = g.getVariable(ruleMetaValue.GetValue().GetValue())
Expand Down

0 comments on commit 5b91a95

Please sign in to comment.