HTTP:client_addr()
Returns the client IP address of a connection.
For HTTP_REQUEST packet, it's source address; for HTTP_RESPONSE packet, it's destination address.
Syntax
HTTP:client_addr();
Arguments
N/A
Events
Applicable in the following events:
-
HTTP_REQUEST
-
HTTP_RESPONSE
Example
when HTTP_REQUEST priority 100 {
cip=HTTP:client_addr()
}
Supported Version
FortiADC version 4.6.x and later.