5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-05 21:55:46 +00:00

fixup! feat: generar direcciones tor a demanda #12773

This commit is contained in:
f 2023-03-28 16:35:02 -03:00
parent 76c97372b9
commit 532e223af5
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'