
    h                     \    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      rS rg)	z?
I am a support module for making SOCKSv4 servers with twistd.
    )internet)socks)usagec                       \ rS rSrSr/ SQ/ SQ/ SQ/r\R                  " \R                  " S5      \R                  " 5       S.S9r
S	rS
rg)Options   z([-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	   )
optActionszMakes a SOCKSv4 server. N)__name__
__module____qualname____firstlineno__synopsisoptParametersr   CompletionsCompleteFilesCompleteNetInterfacescompDatalongdesc__static_attributes__r       X/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/tap/socks.pyr   r      sO    9HM6<M   &&w/446
H )Hr   r   c                    U S   S:w  a@  [        5         [        S5        [        S5        [        S5        [        S5        [        5         [        R                  " U S   5      n[        U S   5      n[        R
                  " X!U S   S	9$ )
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   SOCKSv4Factoryintr   	TCPServer)configtportnos      r   makeServicer(       sv    kk)jEFGH01VE]+A Ff6+3FGGr   N)	__doc__twisted.applicationr   twisted.protocolsr   twisted.pythonr   r   r(   r   r   r   <module>r-      s+   
 ) #  )emm )$
Hr   