request.connection.remote_addr only has IP (#9326)
* request.connection.remote_addr only has IP The request.connection.remote_addr property exposed to Sentinel only has an IP. It does not include a port. I tested this in a policy with `print("remote address:", request.connection.remote_addr)` and got back 150.10.0.26. * Update website/pages/docs/enterprise/sentinel/properties.mdx Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com> Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
This commit is contained in:
parent
0cd66b516f
commit
15d8ed3f82
|
@ -30,7 +30,7 @@ The following properties are available in the `request` namespace.
|
|||
|
||||
| Name | Type | Description |
|
||||
| :----------------------- | :-------------------- | :------------------------------------------------------------------------------------------ |
|
||||
| `connection.remote_addr` | `string` | TCP/IP source address/port of the client |
|
||||
| `connection.remote_addr` | `string` | TCP/IP source address of the client |
|
||||
| `data` | `map (string -> any)` | Raw request data |
|
||||
| `operation` | `string` | Operation type, e.g. "read" or "update" |
|
||||
| `path` | `string` | Path, with any leading `/` trimmed |
|
||||
|
|
Loading…
Reference in a new issue