mirror of
https://github.com/alibaba/higress.git
synced 2026-06-01 08:37:26 +08:00
增加 useManifestAsEntry 配置支持 || Increase the useManifestAsEntry configuration support (#2499)
Co-authored-by: rinfx <yucheng.lxr@alibaba-inc.com>
This commit is contained in:
@@ -304,7 +304,10 @@ func GetConditionRules(rules []*config.GrayRule, grayKeyValue string, cookie str
|
||||
}
|
||||
|
||||
func GetGrayWeightUniqueId(cookie string, uniqueGrayTag string) string {
|
||||
uniqueId := GetCookieValue(cookie, uniqueGrayTag)
|
||||
uniqueId, _ := proxywasm.GetHttpRequestHeader(uniqueGrayTag)
|
||||
if uniqueId == "" {
|
||||
uniqueId = GetCookieValue(cookie, uniqueGrayTag)
|
||||
}
|
||||
if uniqueId == "" {
|
||||
uniqueId = strings.ReplaceAll(uuid.NewString(), "-", "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user