std.ip2str

STRINGstd.ip2strIPip

Available inall subroutines.

Converts the IP address (IPv4 or IPv6) to a string.

The Domain Name Service (DNS) is not consulted, so the numeric form is returned.

The inverse conversion is available as std.str2ip.

Example

if (std.ip2str(std.str2ip(req.http.Fastly-Client-IP, "192.0.2.2")) ~ my_acl) {
...
}