Skip to content

Commit

Permalink
bugfix: P-Agent无法连接外网时,安装失败的问题 (fixed TencentBlueKing#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Dec 15, 2021
1 parent 318e2e2 commit bd38e8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dev_log/2.1.360/durant_202112141750.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfix:
- "P-Agent无法连接外网时,安装失败的问题 (fixed #354)"
4 changes: 2 additions & 2 deletions script_tools/setup_pagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def arg_parser() -> argparse.ArgumentParser:
parser.add_argument("-HSN", "--host-script-name", type=str, help="Host Script Name")
parser.add_argument("-HS", "--host-shell", type=str, help="Host Shell")
parser.add_argument("-CPA", "--channel-proxy-address", type=str, help="Channel Proxy Address", default=None)
parser.add_argument("-ADP", "--agent-download-proxy", type=str, help="Agent Download Proxy", default=True)
parser.add_argument("-ADP", "--agent-download-proxy", type=str, help="Agent Download Proxy", default=None)
return parser


Expand Down Expand Up @@ -416,7 +416,7 @@ def main() -> None:
f"{tmp_dir}curl.exe {args.download_url}/{script_name} -o {tmp_dir}{script_name} -sSf "
if args.agent_download_proxy
else f"{tmp_dir}curl.exe {args.download_url}/{script_name}"
f"-o {tmp_dir}{script_name} -sSf -x {http_proxy_url} "
f" -o {tmp_dir}{script_name} -sSf -x {http_proxy_url} "
)
cmd.append(download_cmd)

Expand Down

0 comments on commit bd38e8a

Please sign in to comment.