mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-19 02:16:22 +00:00
Merge branch 'issue-12773' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
afb485c264
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue