mirror of https://github.com/jumpserver/jumpserver
perf: APPLET_DOWNLOAD_HOST 优化
parent
1c55bde8c8
commit
3341d55d1b
|
@ -50,11 +50,11 @@ class DeployAppletHostManager:
|
||||||
host_id = str(self.deployment.host.id)
|
host_id = str(self.deployment.host.id)
|
||||||
if not site_url:
|
if not site_url:
|
||||||
site_url = "http://localhost:8080"
|
site_url = "http://localhost:8080"
|
||||||
if not download_host:
|
|
||||||
download_host = site_url
|
|
||||||
options = self.deployment.host.deploy_options
|
options = self.deployment.host.deploy_options
|
||||||
core_host = options.get("CORE_HOST", site_url)
|
core_host = options.get("CORE_HOST", site_url)
|
||||||
core_host = core_host.rstrip("/")
|
core_host = core_host.rstrip("/")
|
||||||
|
if not download_host:
|
||||||
|
download_host = core_host
|
||||||
download_host = download_host.rstrip("/")
|
download_host = download_host.rstrip("/")
|
||||||
|
|
||||||
def handler(plays):
|
def handler(plays):
|
||||||
|
|
Loading…
Reference in New Issue