U
    
W[                     @   sR   d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd dej	Z	dd	 Z
d
S )z?
I am a support module for making SOCKSv4 servers with twistd.
    )print_function)socks)usage)internetc                   @   sR   e Zd ZdZddddgdddd	gd
dddggZejede ddZ	dZ
dS )Optionsz([-i <interface>] [-p <port>] [-l <file>]	interfacei	127.0.0.1z"local interface to which we listenportpi8  zPort on which to listenloglNzfile to log connection data toz*.log)r   r   )Z
optActionszMakes a SOCKSv4 server.)__name__
__module____qualname__ZsynopsisZoptParametersr   ZCompletionsZCompleteFilesZCompleteNetInterfacesZcompDataZlongdesc r   r   3/usr/lib/python3/dist-packages/twisted/tap/socks.pyr      s   


r   c                 C   sf   | d dkr8t   t d t d t d t d t   t| d }t| d }tj||| d d	S )
Nr   r	   zWARNING: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   ZSOCKSv4Factoryintr   Z	TCPServer)ZconfigtZportnor   r   r   makeService   s    r   N)__doc__Z
__future__r   Ztwisted.protocolsr   Ztwisted.pythonr   Ztwisted.applicationr   r   r   r   r   r   r   <module>   s   