def get_ipaddr():
    if request.access_route:
        return request.access_route[0]
    else:
        return request.remote_addr or '127.0.0.1'
:return: the ip address for the current request (or 127.0.0.1 if none found)
dataset/ETHPy150Open alisaifee/flask-limiter/flask_limiter/util.py/get_ipaddr