Ejemplo n.º 1
0
 def connect(self, options):
     """
     """
     if _Debug:
         lg.out(4, 'proxy_interface.connect %s' % str(options))
     from transport.proxy import proxy_receiver
     from transport.proxy import proxy_sender
     if settings.enablePROXYreceiving():
         proxy_receiver.A('start', options)
     else:
         lg.warn('proxy transport receiving is disabled')
         interface_receiving_failed()
         return False
     if settings.enablePROXYsending():
         proxy_sender.A('start', options)
     return succeed(True)
Ejemplo n.º 2
0
    def connect(self, options):
        """
        
        """
        if _Debug:
            lg.out(4, "proxy_interface.connect %s" % str(options))
        from transport.proxy import proxy_receiver
        from transport.proxy import proxy_sender

        if settings.enablePROXYreceiving():
            proxy_receiver.A("start", options)
        else:
            lg.warn("proxy transport receiving is disabled")
            interface_receiving_failed()
            return False
        if settings.enablePROXYsending():
            proxy_sender.A("start", options)
        return succeed(True)