o
    �õ±j!  ã                   @   s   G d d„ dƒZ dS )c                   @   s,   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	S )
Ú
TrafficLogc                 C   sF   d | _ d | _d | _d | _d | _d | _d | _d | _d | _d| _	d | _
d S )NF)Ú	client_ipÚclient_portÚdestination_ipÚdestination_hostnameÚdestination_portÚ
session_idÚ	directionÚmoduleÚ
srv_moduleÚis_sslÚdata©Úself© r   ú�/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/asysocks/common/trafficlog.pyÚ__init__   s   
zTrafficLog.__init__c                 C   s   | j d u r| jS | j S ©N)r   r   r   r   r   r   Úget_dst_hostname   s   
zTrafficLog.get_dst_hostnamec              	   C   s8   d| j | j| j| j| j| j d¡rdnd|  ¡ | jf S )Nz[%s][%s][%s][%s:%s %s %s:%s] Úc2dz->z<-)	r
   r	   r   r   r   r   Ú
startswithr   r   r   r   r   r   Ú
get_header   s   øzTrafficLog.get_headerc                 C   s   |   ¡ t| jƒ S r   )r   Ústrr   r   r   r   r   Ú__str__"   s   zTrafficLog.__str__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r      s
    r   N)r   r   r   r   r   Ú<module>   s   