mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:31:42 +00:00
fix: fallar el hidden service si no se generó el onion aun
This commit is contained in:
parent
c6f48f55fc
commit
58dffd00c9
1 changed files with 3 additions and 7 deletions
|
@ -2,14 +2,10 @@
|
|||
|
||||
# Genera una versión onion
|
||||
class DeployHiddenService < DeployWww
|
||||
def deploy(**)
|
||||
return true if fqdn.blank?
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def fqdn
|
||||
values[:onion]
|
||||
values[:onion].tap do |onion|
|
||||
raise ArgumentError, 'Aun no se generó la dirección .onion' if onion.blank?
|
||||
end
|
||||
end
|
||||
|
||||
def url
|
||||
|
|
Loading…
Reference in a new issue