(self, address)
| 80 | self.__class__._onion_auth = authTuple |
| 81 | |
| 82 | def __init__(self, address): |
| 83 | if not isinstance(address, state.Peer): |
| 84 | raise ValueError |
| 85 | AdvancedDispatcher.__init__(self) |
| 86 | self.destination = address |
| 87 | self.isOutbound = True |
| 88 | self.fullyEstablished = False |
| 89 | self.create_socket(socket.AF_INET, socket.SOCK_STREAM) |
| 90 | if address.host.endswith(".onion") and self.onion_proxy is not None: |
| 91 | self.connect(self.onion_proxy) |
| 92 | else: |
| 93 | self.connect(self.proxy) |
| 94 | |
| 95 | def handle_connect(self): |
| 96 | self.set_state("init") |
no test coverage detected