Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:local_addr()

HTTP:local_addr()

For HTTP_REQUEST, returns the IP address of the virtual server the client is connected to; for HTTP_RESPONSE, returns the incoming interface IP address of the return packet.

Syntax

HTTP:local_addr();

Arguments

N/A

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
lip = HTTP:local_addr()
}

Supported Version

FortiADC version 4.6.x and later.

HTTP:local_addr()

HTTP:local_addr()

For HTTP_REQUEST, returns the IP address of the virtual server the client is connected to; for HTTP_RESPONSE, returns the incoming interface IP address of the return packet.

Syntax

HTTP:local_addr();

Arguments

N/A

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
lip = HTTP:local_addr()
}

Supported Version

FortiADC version 4.6.x and later.