(self)
| 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: |