Support regex for attr matching

This commit is contained in:
yuhan6665 2023-06-25 20:24:39 -04:00
parent 09b8d43ba6
commit 2496487912
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@
> `attrs`: object > `attrs`: object
一个 json object键名字和值皆为字符串用于检测流量的属性值。当 HTTP headers 包含所有指定的键,并且值包含指定的子字符串,则命中此规则。大小写不敏感。 一个 json object键名字和值皆为字符串用于检测流量的属性值。当 HTTP headers 包含所有指定的键,并且值包含指定的子字符串,则命中此规则。大小写不敏感。值支持使用正则表达式。
目前只有 http 入站代理会设置这一属性。 目前只有 http 入站代理会设置这一属性。

View File

@ -164,7 +164,7 @@ The `sniffing` option in the inbound proxy must be enabled to detect the protoco
`attrs`: object `attrs`: object
A json object with string keys and values, used to detect the HTTP headers of the traffic. It matches when all specified keys exist in the header and corresponding values are a substring of the header value, case in-sensitive. A json object with string keys and values, used to detect the HTTP headers of the traffic. It matches when all specified keys exist in the header and corresponding values are a substring of the header value. The key is case in-sensitive. You can use regex to match with value.
Currently, only the inbound HTTP proxy sets this attribute. Currently, only the inbound HTTP proxy sets this attribute.