5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 22:26:22 +00:00
panel/app/models/deploy_hidden_service.rb
2022-04-06 20:07:14 -03:00

18 lines
237 B
Ruby

# frozen_string_literal: true
# Genera una versión onion
class DeployHiddenService < DeployWww
def deploy
return true if fqdn.blank?
super
end
def fqdn
values[:onion]
end
def url
"http://#{fqdn}"
end
end