Ejemplo n.º 1
0
    def __init__(self):
        self.handler = SocksHandler()

        self.supportedTransports = {
            'dummy': DummyClient,
            'rot13': Rot13Client,
            'dust': DustClient,
            'obfs3': Obfs3Client,
        }

        matchedTransports = init(self.supportedTransports.keys())
        for transport in matchedTransports:
            try:
                logging.error('Launching %s' % transport)
                self.launchClient(transport, 8182)
                reportSuccess(transport, 5, ('127.0.0.1', 8182), None, None)
            except TransportLaunchException:
                reportFailure(transport, 'Failed to launch')
        reportEnd()

        eventloop.run()