mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 07:06:22 +00:00
14 lines
282 B
Ruby
14 lines
282 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Genera una versión onion
|
|
class DeployHiddenService < DeployWww
|
|
def fqdn
|
|
values[:onion].tap do |onion|
|
|
raise ArgumentError, 'Aun no se generó la dirección .onion' if onion.blank?
|
|
end
|
|
end
|
|
|
|
def url
|
|
"http://#{fqdn}"
|
|
end
|
|
end
|