mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-20 00:36:23 +00:00
fix: fallar el hidden service si no se generó el onion aun
This commit is contained in:
parent
151aecc4d8
commit
39a615c00c
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