�
Ϫ�f� � �\ � d Z ddlmZ ddlmZ ddlmZ G d� dej � Zd� Zy) z?
I am a support module for making SOCKSv4 servers with twistd.
� )�internet)�socks)�usagec � � e Zd ZdZg d�g d�g d�gZ ej ej d� ej � d��� Z dZ
y )
�Optionsz([-i <interface>] [-p <port>] [-l <file>])� interface�i� 127.0.0.1z"local interface to which we listen)�port�pi8 zPort on which to listen)�log�lNzfile to log connection data toz*.log)r
r )�
optActionszMakes a SOCKSv4 server.N)�__name__�
__module__�__qualname__�synopsis�
optParametersr �Completions�
CompleteFiles�CompleteNetInterfaces�compData�longdesc� � �3/usr/lib/python3/dist-packages/twisted/tap/socks.pyr r sU � �9�H�M�6�<��M� !�u� � �&�5�&�&�w�/�4��4�4�6�
��H� )�Hr r c � � | d dk7 r@t � t d� t d� t d� t d� t � t j | d � }t | d � }t j
||| d � � S )
Nr r
zWARNING:z5 You have chosen to listen on a non-local interface.z7 This may allow intruders to access your local networkz if you run this on a firewall.r
r )r )�printr �SOCKSv4Factory�intr � TCPServer)�config�t�portnos r �makeServicer% sx � �
�k��k�)�
��
�j��
�E�F�
�G�H�
�0�1�
��
���V�E�]�+�A�
����
�F����f�a�6�+�3F�G�Gr N) �__doc__�twisted.applicationr �twisted.protocolsr �twisted.pythonr r r% r r r �<module>r* s+ ��
� )� #� �)�e�m�m� )�$
Hr |