MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / delOnion

Method delOnion

src/Tor/TorManager.py:227–237  ·  view source on GitHub ↗
(self, address)

Source from the content-addressed store, hash-verified

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:

Callers 2

testAddOnionMethod · 0.45
testSignOnionMethod · 0.45

Calls 4

requestMethod · 0.95
setStatusMethod · 0.95
disconnectMethod · 0.95
errorMethod · 0.80

Tested by 2

testAddOnionMethod · 0.36
testSignOnionMethod · 0.36