5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-19 06:36:22 +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 9d1505d263
commit 76c97372b9

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