Ejemplo n.º 1
0
    def reset_onion_private_key(self, req_args, *args, **kargs):
        yield set_onion_service_info(self.request.tid, u'', u'')
        yield self.state.onion_service_job.add_hidden_service(
            self.request.tid, u'', u'')
        yield self.state.onion_service_job.remove_unwanted_hidden_services()

        onion_details = yield get_onion_service_info(self.request.tid)
        returnValue({'onionservice': onion_details[1]})
Ejemplo n.º 2
0
    def reset_onion_private_key(self, req_args, *args, **kargs):
        yield set_onion_service_info(self.request.tid, u'', u'')
        yield self.state.onion_service_job.add_hidden_service(self.request.tid, u'', u'')
        yield self.state.onion_service_job.remove_unwanted_hidden_services()

        onion_details = yield get_onion_service_info(self.request.tid)
        returnValue({
            'onionservice': onion_details[1]
        })
Ejemplo n.º 3
0
    def reset_onion_private_key(self, req_args, *args, **kargs):
        hostname, key = generate_onion_service_v3()
        yield set_onion_service_info(self.request.tid, hostname, key)
        yield self.state.onion_service_job.add_onion_service(self.request.tid, hostname, key)
        yield self.state.onion_service_job.remove_unwanted_onion_services()

        onion_details = yield get_onion_service_info(self.request.tid)
        returnValue({
            'onionservice': onion_details[1]
        })