5
0
Fork 0
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:
f 2023-03-18 15:10:32 -03:00
parent 151aecc4d8
commit 39a615c00c

View file

@ -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