MCPcopy Create free account
hub / github.com/HelloZeroNet/ZeroNet / resetCircuits

Method resetCircuits

src/Tor/TorManager.py:196–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194
195 # Get new exit node ip
196 def resetCircuits(self):
197 res = self.request("SIGNAL NEWNYM")
198 if "250 OK" not in res:
199 self.setStatus("Reset circuits error (%s)" % res)
200 self.log.error("Tor reset circuits error: %s" % res)
201
202 def addOnion(self):
203 if len(self.privatekeys) >= config.tor_hs_limit:

Callers

nothing calls this directly

Calls 3

requestMethod · 0.95
setStatusMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected