fix(remnawave): serialize dict profile template before placeholder substitution
This commit is contained in:
1 parent
9c8298fcfe
commit
da00d585cf
1 file changed
+2
@@ -186,6 +186,8 @@ def _render_profile_config(
|
|||||||
raw_tpl = profile_templates.get(tpl_key)
|
raw_tpl = profile_templates.get(tpl_key)
|
||||||
if not raw_tpl:
|
if not raw_tpl:
|
||||||
raise RuntimeError(f"Не найден шаблон профиля {tpl_key}")
|
raise RuntimeError(f"Не найден шаблон профиля {tpl_key}")
|
||||||
|
if isinstance(raw_tpl, dict):
|
||||||
|
raw_tpl = json.dumps(raw_tpl)
|
||||||
|
|
||||||
_, key_resp = api.request("GET", "/system/tools/x25519/generate")
|
_, key_resp = api.request("GET", "/system/tools/x25519/generate")
|
||||||
resp_obj = key_resp.get("response") or key_resp
|
resp_obj = key_resp.get("response") or key_resp
|
||||||
|
|||||||
Reference in new issue
Block a user