5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:31:41 +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 c6f48f55fc
commit 58dffd00c9

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