mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-23 10:21:51 +00:00
fixup! feat: generar direcciones tor a demanda #12773
This commit is contained in:
parent
76c97372b9
commit
532e223af5
2 changed files with 2 additions and 2 deletions
|
@ -8,6 +8,6 @@ class HiddenServiceClient
|
||||||
base_uri ENV.fetch('HIDDEN_SERVICE', 'http://tor:3000')
|
base_uri ENV.fetch('HIDDEN_SERVICE', 'http://tor:3000')
|
||||||
|
|
||||||
def create(name)
|
def create(name)
|
||||||
self.class.get("/#{name}")
|
self.class.get("/#{name}").body
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ class DeployHiddenService < DeployWww
|
||||||
def create_hidden_service!
|
def create_hidden_service!
|
||||||
onion_address = HiddenServiceClient.new.create(site.name)
|
onion_address = HiddenServiceClient.new.create(site.name)
|
||||||
|
|
||||||
if onion_address =~ ONION_RE
|
if ONION_RE =~ onion_address
|
||||||
self.onion = onion_address
|
self.onion = onion_address
|
||||||
|
|
||||||
usuarie = GitAuthor.new email: "tor@#{Site.domain}", name: 'Tor'
|
usuarie = GitAuthor.new email: "tor@#{Site.domain}", name: 'Tor'
|
||||||
|
|
Loading…
Reference in a new issue