Ticket #1330 (new enhancement )

Opened 4 years ago

Last modified 4 days ago

Socks V5 functionality

Reported by: jadestorm Assigned to: jadestorm
Type: enhancement Priority: lowest
Milestone: Component: core
Keywords: Cc: warner, jknight, jadestorm
Branch: Author:
Launchpad Bug:

Attachments

socks5.py (14.0 kB) - added by jadestorm 4 years ago.
sockserror.py (1.4 kB) - added by jadestorm 4 years ago.

Change History

  2005-11-13 10:05:34+00:00 changed by jadestorm

  • attachment socks5.py added

  2005-11-13 10:05:34+00:00 changed by jadestorm

One of my PyAIM/PyICQ users submitted this code and it works like a charm.
Thought it might be nice to include in the main tree.  I only see Socks V4
support as it stands.  There are two files here, I'll attach the other one in a
second.  I imagine there's no good reason why the second (sockserror.py) file
couldn't be merged into socks5.py, but hey.  Daniel Chandran
(daniel.chandran@gmail.com) submitted this code.  I offer it to Twisted proper
with his blessing.  =)

  2005-11-13 10:05:52+00:00 changed by jadestorm

  • attachment sockserror.py added

  2005-11-13 10:08:02+00:00 changed by jadestorm

Here's a quick example of using it; you'll note that there is a check for
whether socks is configured so that it's obvious what the difference between a
normal connection and a socks 5 based connection is:
        if self.socksProxyServer and self.socksProxyPort:
            c = protocol.ProxyClientCreator(reactor, serviceClasses[service],
self, cookie, d)
            c.connectSocks5Proxy(ip, 5190, self.socksProxyServer,
int(self.socksProxyPort), "BOSCONN").addCallback(addService)
        else:
            c = protocol.ClientCreator(reactor, serviceClasses[service], self,
cookie, d)
            c.connectTCP(ip, 5190).addCallback(addService)

  2006-01-28 09:14:47+00:00 changed by jknight

This looks like a nice feature but it needs tests.

  2008-09-23 14:38:05+00:00 changed by exarkun

  • author deleted
  • component set to core
  • launchpad_bug deleted
  • summary changed from [PATCH, sorta] Socks V5 functionality to Socks V5 functionality
  • branch deleted
  • owner set to glyph

  2008-11-11 17:46:18+00:00 changed by khorn

FYI, This looks like the same code from this email message: http://twistedmatrix.com/pipermail/twisted-python/2003-February/003057.html except split into two files.

Assuming it is, the original author was Dmitry Litovchenko.

  2009-06-30 08:38:07+00:00 changed by glyph

  • owner changed from glyph to jadestorm
  • priority changed from normal to lowest

This would need test coverage, and some kind of OK from Mr. Litovchenko if it were to be included.

Note: See TracTickets for help on using tickets.