Skip to content

Commit

Permalink
pref: 节点管理插件增加 【重新注册 Agent_id】选项 #7544
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej committed Aug 29, 2024
1 parent fe453eb commit d66b8dc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def execute(self, data, parent_data):
auth_params["key"] = auth_key

# 额外配置参数
extra_config_params = {"peer_exchange_switch_for_agent": host.get("peer_exchange_switch_for_agent", 0)}
extra_config_params = {
"peer_exchange_switch_for_agent": host.get("peer_exchange_switch_for_agent", 0),
"force_update_agent_id": host.get("force_update_agent_id", False),
}
speed_limit = host.get("speed_limit")
if speed_limit:
extra_config_params.update({"bt_speed_limit": int(speed_limit)})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,23 @@
]
},
},
{
tag_code: "force_update_agent_id",
type: "radio",
attrs: {
name: gettext("重新注册Agent_id"),
items: [
{value: true, name: gettext("是")},
{value: false, name: gettext("否")}
],
default: false,
validation: [
{
type: "required"
},
]
},
},
];

self.columns = common_columns;
Expand Down

0 comments on commit d66b8dc

Please sign in to comment.