Skip to content

Commit 0ab2e8c

Browse files
author
noahchi
committed
feat: 适配proxy独立上游地址
1 parent f4100f1 commit 0ab2e8c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/backend/agent/solution_maker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,13 @@ def _enable_proxy_config() -> str:
244244

245245
def get_run_cmd_base_params(self) -> typing.List[str]:
246246
port_config: typing.Dict[str, typing.Any] = self.host_ap.port_config
247+
if self.host.node_type == constants.NodeType.PROXY:
248+
io_port = port_config.get("upstream_io_port") or port_config.get("io_port")
249+
else:
250+
io_port = port_config.get("io_port")
247251
run_cmd_params: typing.List[str] = [
248252
# 端口信息
249-
f'-O {port_config.get("io_port")}',
253+
f'-O {io_port}',
250254
f'-E {port_config.get("file_svr_port")}',
251255
f'-A {port_config.get("data_port")}',
252256
f'-V {port_config.get("btsvr_thrift_port")}',

0 commit comments

Comments
 (0)