mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:21:41 +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
|
# Genera una versión onion
|
||||||
class DeployHiddenService < DeployWww
|
class DeployHiddenService < DeployWww
|
||||||
def deploy(**)
|
|
||||||
return true if fqdn.blank?
|
|
||||||
|
|
||||||
super
|
|
||||||
end
|
|
||||||
|
|
||||||
def fqdn
|
def fqdn
|
||||||
values[:onion]
|
values[:onion].tap do |onion|
|
||||||
|
raise ArgumentError, 'Aun no se generó la dirección .onion' if onion.blank?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def url
|
def url
|
||||||
|
|
Loading…
Reference in a new issue