(self, address)
| 225 | return False |
| 226 | |
| 227 | def delOnion(self, address): |
| 228 | res = self.request("DEL_ONION %s" % address) |
| 229 | if "250 OK" in res: |
| 230 | del self.privatekeys[address] |
| 231 | self.setStatus("OK (%s onion running)" % len(self.privatekeys)) |
| 232 | return True |
| 233 | else: |
| 234 | self.setStatus("DelOnion error (%s)" % res) |
| 235 | self.log.error("Tor delOnion error: %s" % res) |
| 236 | self.disconnect() |
| 237 | return False |
| 238 | |
| 239 | def request(self, cmd): |
| 240 | with self.lock: |