5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 00:36:21 +00:00
panel/app/models/deploy_hidden_service.rb

19 lines
241 B
Ruby
Raw Normal View History

2020-07-18 19:26:54 +00:00
# frozen_string_literal: true
# Genera una versión onion
class DeployHiddenService < DeployWww
def deploy(**)
2020-07-18 19:26:54 +00:00
return true if fqdn.blank?
super
end
def fqdn
values[:onion]
end
def url
2022-04-06 23:07:14 +00:00
"http://#{fqdn}"
2020-07-18 19:26:54 +00:00
end
end