Skip to content

Commit

Permalink
feature: 提供 2.0 Agent & Proxy 安装包制作能力 (closed TencentBlueKing#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Dec 20, 2022
1 parent 10a7070 commit 291aaa9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/backend/agent/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def __init__(


def gen_nginx_download_url(nginx_ip: str) -> str:
return f"http://{nginx_ip}:{settings.BK_NODEMAN_NGINX_DOWNLOAD_PORT}/"
if basic.is_v6(nginx_ip):
return f"http://[{nginx_ip}]:{settings.BK_NODEMAN_NGINX_DOWNLOAD_PORT}/"
else:
return f"http://{nginx_ip}:{settings.BK_NODEMAN_NGINX_DOWNLOAD_PORT}/"


def fetch_gse_servers_info(
Expand Down

0 comments on commit 291aaa9

Please sign in to comment.