5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-27 07:26:08 +00:00

fix: reintentar si falló la generación en el pasado

This commit is contained in:
f 2023-03-28 16:22:58 -03:00
parent 0002ed53a9
commit 2f745886f5

View file

@ -9,6 +9,8 @@ class DeployHiddenService < DeployWww
ONION_RE = /\A[a-z0-9]{56}\.onion\z/.freeze
def fqdn
create_hidden_service! if onion.blank?
onion.tap do |onion|
raise ArgumentError, 'Aun no se generó la dirección .onion' if onion.blank?
end