feat(host_agent): use public_base_url helper for rotate-token URL

This commit is contained in:
2026-04-15 23:31:00 -04:00
parent a72aff4cbc
commit cefdf17799
+1 -1
View File
@@ -325,7 +325,7 @@ async def settings_list():
new_host_id = request.args.get("host_id")
install_url = None
if new_token and new_host_id:
install_url = f"{request.host_url.rstrip('/')}/plugins/host_agent/install.sh?token={new_token}"
install_url = f"{public_base_url(request)}/plugins/host_agent/install.sh?token={new_token}"
return await render_template(
"settings_list.html",