<<

METHODS

prepare_app

This method generates and stores the list of trusted ip's as Netmask objects at the time Plack starts up, obviating the need to regerenate them on each request.

call

This method is called for each request, and will ensure the correct remote address is set in the REMOTE_ADDR environment variable.

get_real_ip

my $address = get_real_ip( $remote_addres, $x_forwarded_for_header );

This method takes the current remote address and the x-forwarded-for header string, determines the correct external ip address, and returns it.

get_trusted_proxies

This method returns an arrayref of Net::Netmask objects for all the trusted proxies given to Koha.

AUTHORS

Kyle M Hall <kyle@bywatersolutions.com>

<<