'Selects the new remote addr from the given list of ips in
X-Forwarded-For.  By default it picks the one that the `num_proxies`
proxy server provides.  Before 0.9 it would always pick the first.
.. versionadded:: 0.8'

def get_remote_addr(self, forwarded_for):

    if (len(forwarded_for) >= self.num_proxies):
        return forwarded_for[(- self.num_proxies)]
