remote_addr variable

A. Schulze sca at andreasschulze.de
Wed Oct 28 16:58:39 UTC 2020



Am 25.10.20 um 12:20 schrieb Francis Daly:
>   map $remote_addr $this_transport_is {
>     ~: IPv6;
>     default IPv4;
>   }
> 
> and then use $this_transport_is where you want it.
> 
> (Note: I have tested this with
> 
>   return 200 "Transport: $this_transport_is\n";
> 
> but I have not tried ssi.)

Hello Francis!

thanks for that hint. It works very well for me.
I can confirm the variable '$this_transport_is' is accessible
via ssi, too: <!--# echo var="this_transport_is" -->

Andreas


More information about the nginx mailing list