
    VhJ                     0    d dl mZ dedefdZdedefdZy)    )Requestrequestreturnc                     d| j                   v r| j                   d   S | j                  r| j                  j                  sy| j                  j                  S )a  
    Returns the ip address for the current request (or 127.0.0.1 if none found)
     based on the X-Forwarded-For headers.
     Note that a more robust method for determining IP address of the client is
     provided by uvicorn's ProxyHeadersMiddleware.
    X_FORWARDED_FOR	127.0.0.1)headersclienthostr   s    Z/var/www/catia.catastroantioquia-mas.com/tasa/lib/python3.12/site-packages/slowapi/util.py
get_ipaddrr      sF     GOO+011~~W^^%8%8~~"""    c                 t    | j                   r| j                   j                  sy| j                   j                  S )zU
    Returns the ip address for the current request (or 127.0.0.1 if none found)
    r   )r
   r   r   s    r   get_remote_addressr      s*     >>!4!4>>r   N)starlette.requestsr   strr   r    r   r   <module>r      s.    &# #C #  C r   