ó
[³XMc           @   sh   d  Z  d d l m Z d d l m Z d d l m Z d d l Z d e j f d     YZ d   Z	 d S(	   s?   
I am a support module for making SOCKSv4 servers with twistd.
i˙˙˙˙(   t   socks(   t   usage(   t   internetNt   Optionsc           B   sT   e  Z d  Z d d d d g d d d d g d	 d
 d d g g Z i d d	 6Z d Z RS(   s(   [-i <interface>] [-p <port>] [-l <file>]t	   interfacet   is	   127.0.0.1s"   local interface to which we listent   portt   pi8  s   Port on which to listent   logt   ls   file to log connection data tos   _files -g '*.log's   Makes a SOCKSv4 server.N(   t   __name__t
   __module__t   synopsist   Nonet   optParameterst   zsh_actionst   longdesc(    (    (    s5   /usr/lib/python2.7/dist-packages/twisted/tap/socks.pyR      s   c         C   sf   |  d d k r) Hd GHd GHd GHd GHHn  t  j |  d  } t |  d  } t j | | d |  d S(	   NR   s	   127.0.0.1s   WARNING:s5     You have chosen to listen on a non-local interface.s7     This may allow intruders to access your local networks      if you run this on a firewall.R   R   (   R    t   SOCKSv4Factoryt   intR   t	   TCPServer(   t   configt   tt   portno(    (    s5   /usr/lib/python2.7/dist-packages/twisted/tap/socks.pyt   makeService   s    (
   t   __doc__t   twisted.protocolsR    t   twisted.pythonR   t   twisted.applicationR   t   sysR   R   (    (    (    s5   /usr/lib/python2.7/dist-packages/twisted/tap/socks.pyt   <module>   s   	