Fix typo in view plugin README.md (#6457)
Signed-off-by: keita <keitap@gmail.com>
This commit is contained in:
parent
1ab23019e3
commit
945db2facd
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ Note that the regex pattern is enclosed in single quotes, and backslashes are es
|
|||
|
||||
To evaluate expressions, *view* uses the antonmedv/expr package (https://github.com/antonmedv/expr).
|
||||
For example, an expression could look like:
|
||||
`(type() == 'A' && name() == 'example.com') || client_ip() == '1.2.3.4'`.
|
||||
`(type() == 'A' && name() == 'example.com.') || client_ip() == '1.2.3.4'`.
|
||||
|
||||
All expressions should be written to evaluate to a boolean value.
|
||||
|
||||
|
@ -113,7 +113,7 @@ functions defined below.
|
|||
* `client_ip() string`: client's IP address, for IPv6 addresses these are enclosed in brackets: `[::1]`
|
||||
* `do() bool`: the EDNS0 DO (DNSSEC OK) bit set in the query
|
||||
* `id() int`: query ID
|
||||
* `name() string`: name of the request (the domain name requested)
|
||||
* `name() string`: name of the request (the domain name requested ending with a dot): `example.com.`
|
||||
* `opcode() int`: query OPCODE
|
||||
* `port() string`: client's port
|
||||
* `proto() string`: protocol used (tcp or udp)
|
||||
|
|
Loading…
Add table
Reference in a new issue