PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
defence360agent
/
utils
/
__pycache__
/
Editing: ipecho.cpython-311.pyc
� ���i� � �� � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z mZ ddlmZ ddlmZmZ ej e� � Zd Zd Z ed� � dz Z G d � de � � ZdS )z<IPEchoAPI - returns real IP address of the host (behind NAT)� N)�Path)�Optional)� alru_cache)�API�APIError)�atomic_rewrite)�IP� IPVersion� i0* z/var/imunify360�ipecho_cachec �: � e Zd ZdZdZe ed�� � ddedee fd�� � � � Z e ej d �� � d � � � � � Z e ddedee fd�� � Zedee fd�� � Zed e ddfd�� � Zed� � � ZdS )� IPEchoAPIz2Make requests to the API for obtain own IP addressz/api/ip� )�maxsizeN� ip_version�returnc � �<