From 532e223af5aed71b9a63f9ac583785e7b3002bbd Mon Sep 17 00:00:00 2001 From: f Date: Tue, 28 Mar 2023 16:35:02 -0300 Subject: [PATCH] fixup! feat: generar direcciones tor a demanda #12773 --- app/lib/hidden_service_client.rb | 2 +- app/models/deploy_hidden_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/hidden_service_client.rb b/app/lib/hidden_service_client.rb index 9cf8a1d5..5715a869 100644 --- a/app/lib/hidden_service_client.rb +++ b/app/lib/hidden_service_client.rb @@ -8,6 +8,6 @@ class HiddenServiceClient base_uri ENV.fetch('HIDDEN_SERVICE', 'http://tor:3000') def create(name) - self.class.get("/#{name}") + self.class.get("/#{name}").body end end diff --git a/app/models/deploy_hidden_service.rb b/app/models/deploy_hidden_service.rb index 6e065102..25c0c217 100644 --- a/app/models/deploy_hidden_service.rb +++ b/app/models/deploy_hidden_service.rb @@ -25,7 +25,7 @@ class DeployHiddenService < DeployWww def create_hidden_service! onion_address = HiddenServiceClient.new.create(site.name) - if onion_address =~ ONION_RE + if ONION_RE =~ onion_address self.onion = onion_address usuarie = GitAuthor.new email: "tor@#{Site.domain}", name: 'Tor'